forked from ros-infrastructure/www.ros.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobot.html.erb
29 lines (28 loc) · 933 Bytes
/
robot.html.erb
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
<% render '/default.*' do %>
<div class="page-wrapper">
<div class="description-grid-main">
<% header_style = @item[:header_image] ? "background-image: url(#{robot_image_url(@item, :header_image)})" : '' %>
<div class="bg-header-robot" style="<%= header_style %>">
<h1><%= h(@item[:title]) %></h1>
<h2><%= h(@item[:subtitle]) if @item[:subtitle] %></h2>
</div>
<div class="description-main-content">
<%= yield %>
</div>
<div class="description-sidebar">
<h1>Robot Category</h1>
<div class="tags-wrapper-sidebar">
<% robot_categories(@item).each do |category| %>
<a href='#' class='tag'><%= category %></a>
<% end %>
</div>
<h1>Robot Tags</h1>
<div class="tags-wrapper-sidebar">
<% robot_tags(@item).each do |tag| %>
<a class='tag'><%= tag %></a>
<% end %>
</div>
</div>
</div>
</div>
<% end %>