button ausblenden wenn nicht eingeloggt

This commit is contained in:
Andreas Stephanides
2014-10-19 19:29:29 +02:00
parent 96ef48cb31
commit ad751c0837

View File

@@ -3,7 +3,7 @@
<h2><%= small.title %> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %></h2> <h2><%= small.title %> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %></h2>
</a> </a>
<% if small.is_outdated? %> <% if small.is_outdated? %>
<div class="sticker sticker-red"> <%= I18n.t("thema.outdated") %> <%= link_to"Als aktuell markieren",is_updated_thema_path(small), :class=>:btn %></div> <div class="sticker sticker-red"> <%= I18n.t("thema.outdated") %> <%= link_to"Als aktuell markieren",is_updated_thema_path(small), :class=>:btn if can? :is_updated, small%></div>
<% end %> <% end %>
<% if small.isdraft %> <% if small.isdraft %>
<div class="sticker sticker-yellow"><%= I18n.t("thema.isdraft") %> </div> <div class="sticker sticker-yellow"><%= I18n.t("thema.isdraft") %> </div>