-
Notifications
You must be signed in to change notification settings - Fork 390
/
show.html.erb
19 lines (18 loc) · 1.12 KB
/
show.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div class="block">
<div class="secondary-navigation">
<ul class="wat-cf">
<li class="first"><%= link_to "#{t("web-app-theme.list", :default => "List")}", posts_path %></li>
<li><%= link_to "#{t("web-app-theme.new", :default => "New")}", new_post_path %></li>
<li class="active"><%= link_to "#{t("web-app-theme.show", :default => "Show")}", post_path %></li>
</ul>
</div>
<div class="content">
<div class="inner">
<div class="wat-cf">
<%= link_to image_tag("web-app-theme/icons/application_edit.png", :alt => "#{t("web-app-theme.edit", :default=> "Edit")}") + " " + t("web-app-theme.edit", :default=> "Edit"), edit_post_path(@post), :class => "button" %>
<%= link_to image_tag("web-app-theme/icons/cross.png", :alt => "#{t("web-app-theme.delete", :default=> "Delete")}") + " " + t("web-app-theme.delete", :default => "Delete"), post_path(@post), :method => "delete", :class => "button", :confirm => "#{t("web-app-theme.confirm", :default => "Are you sure?")}" %>
</div>
</div>
</div>
</div>
<% content_for :sidebar, render(:partial => 'sidebar') -%>