blob: c62d9ebd6b2026be3f080e15d8a46503526b5410 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<% content_for :header do %>
<div class="kk-header-container">
<div class="container">
<div class="row">
<div class="col-12">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Home</a></li>
<li class="breadcrumb-item"><%= link_to t(:packages), categories_path %></li>
<li class="breadcrumb-item"><%= link_to package.category_model.name, category_path(package.category_model) %></li>
<li class="breadcrumb-item active"><%= package.name %></li>
</ol>
<div class="row">
<div class="col-md-4">
<h1 class="stick-top kk-package-title" id="package-title" data-atom="<%= package.atom %>" data-category="<%= package.category %>" data-name="<%= package.name %>">
<small class="kk-package-cat"><%= package.category_model.name %>/</small>
<div>
<%= octicon 'package', :height => 32, :class => 'right left kk-package-icon', :'aria-label' => 'Package icon' %>
<div class="kk-package-name"><%= package.name %></div>
</div>
</h1>
</div>
<div class="col-md-8">
<p class="lead kk-package-maindesc">
<%= package.description %>
</p>
<% unless package.homepage.nil? || package.homepage.first.nil? || package.homepage.first.empty? %>
<p class="kk-package-homepage">
<%= content_tag :a, package.homepage.first, href: package.homepage.first, rel: 'nofollow' %>
</p>
<% end %>
</div>
</div>
</div>
</div>
</div>
</div>
<% end %>
|