Mercurial > hg > soundsoftware-site
annotate .svn/pristine/12/129a1be9ab4fb00e9e24a4a97d3003da6c507962.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 <% if @project.boards.any? %> |
Chris@909 | 2 <table class="list"> |
Chris@909 | 3 <thead><tr> |
Chris@909 | 4 <th><%= l(:label_board) %></th> |
Chris@909 | 5 <th><%= l(:field_description) %></th> |
Chris@909 | 6 <th></th> |
Chris@909 | 7 <th></th> |
Chris@909 | 8 </tr></thead> |
Chris@909 | 9 <tbody> |
Chris@909 | 10 <% @project.boards.each do |board| |
Chris@909 | 11 next if board.new_record? %> |
Chris@909 | 12 <tr class="<%= cycle 'odd', 'even' %>"> |
Chris@909 | 13 <td><%=h board.name %></td> |
Chris@909 | 14 <td><%=h board.description %></td> |
Chris@909 | 15 <td align="center"> |
Chris@909 | 16 <% if authorize_for("boards", "edit") %> |
Chris@909 | 17 <%= reorder_links('board', {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}) %> |
Chris@909 | 18 <% end %> |
Chris@909 | 19 </td> |
Chris@909 | 20 <td class="buttons"> |
Chris@909 | 21 <%= link_to_if_authorized l(:button_edit), {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}, :class => 'icon icon-edit' %> |
Chris@909 | 22 <%= link_to_if_authorized l(:button_delete), {:controller => 'boards', :action => 'destroy', :project_id => @project, :id => board}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> |
Chris@909 | 23 </td> |
Chris@909 | 24 </tr> |
Chris@909 | 25 <% end %> |
Chris@909 | 26 </tbody> |
Chris@909 | 27 </table> |
Chris@909 | 28 <% else %> |
Chris@909 | 29 <p class="nodata"><%= l(:label_no_data) %></p> |
Chris@909 | 30 <% end %> |
Chris@909 | 31 |
Chris@909 | 32 <p><%= link_to_if_authorized l(:label_board_new), {:controller => 'boards', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %></p> |