showversions, Neuigkeit

This commit is contained in:
Andreas Stephanides
2014-10-19 19:50:24 +02:00
parent 7436c5c01e
commit 6343896744
2 changed files with 2 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ class Ability
if loggedin if loggedin
end end
if( user.has_role?("fetuser") || user.has_role?("fetadmin")) if( user.has_role?("fetuser") || user.has_role?("fetadmin"))
can :showversions, Neuigkeit
can :showintern, Neuigkeit can :showintern, Neuigkeit
can :showintern, Rubrik can :showintern, Rubrik
can :seeintern, User can :seeintern, User

View File

@@ -1,6 +1,6 @@
<% if can? :show, small %> <% if can? :show, small %>
<a name="thema_<%=small.id%>" href="#<%=small.id%>"> <a name="thema_<%=small.id%>" href="#<%=small.id%>">
<h2><%= small.title %> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %> <%= link_to fa_icon("paint-brush"), sanitize_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 if can? :is_updated, small%></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>