##// END OF EJS Templates
check that block is defined before rendering it (my/page)...
check that block is defined before rendering it (my/page) git-svn-id: http://redmine.rubyforge.org/svn/trunk@243 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r188:486b4e9ea258
r240:73510949bacb
Show More
show.rhtml
37 lines | 1.9 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
contextual links redesign...
r90 <div class="contextual">
Jean-Philippe Lang
* all icons replaced (new icons are based on GPL icon set: "KDE Crystal Diamond 2.5" -by paolino- and "kNeu! Alpha v0.1" -by Pablo Fabregat-)...
r154 <%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit' %>
Jean-Philippe Lang
deprecated ":post => true" replaced...
r188 <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
Jean-Philippe Lang
contextual links redesign...
r90 </div>
Jean-Philippe Lang
Initial commit...
r2 <h2><%= @document.title %></h2>
Jean-Philippe Lang
documents views modified...
r58 <p><em><%= @document.category.name %><br />
<%= format_date @document.created_on %></em></p>
<%= textilizable @document.description %>
<br />
Jean-Philippe Lang
Initial commit...
r2
Jean-Philippe Lang
documents views modified...
r58 <h3><%= l(:label_attachment_plural) %></h3>
Jean-Philippe Lang
misc GUI modifications...
r114 <ul class="documents">
Jean-Philippe Lang
association loading in documents/show...
r22 <% for attachment in @attachments %>
Jean-Philippe Lang
documents views modified...
r58 <li>
Jean-Philippe Lang
contextual links redesign...
r90 <div class="contextual">
Jean-Philippe Lang
deprecated ":post => true" replaced...
r188 <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy_attachment', :id => @document, :attachment_id => attachment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
Jean-Philippe Lang
contextual links redesign...
r90 </div>
Jean-Philippe Lang
documents views modified...
r58 <%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
Jean-Philippe Lang
replaced deprecated human_size by number_to_human_size...
r182 (<%= number_to_human_size attachment.filesize %>)<br />
Jean-Philippe Lang
documents views modified...
r58 <em><%= attachment.author.display_name %>, <%= format_date(attachment.created_on) %></em><br />
<%= lwr(:label_download, attachment.downloads) %>
</li>
Jean-Philippe Lang
Initial commit...
r2 <% end %>
Jean-Philippe Lang
documents views modified...
r58 </ul>
Jean-Philippe Lang
Initial commit...
r2 <br />
Jean-Philippe Lang
documents views modified...
r58
Jean-Philippe Lang
Initial commit...
r2 <% if authorize_for('documents', 'add_attachment') %>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %>
Jean-Philippe Lang
* all icons replaced (new icons are based on GPL icon set: "KDE Crystal Diamond 2.5" -by paolino- and "kNeu! Alpha v0.1" -by Pablo Fabregat-)...
r154 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
<%= image_to_function "add.png", "addFileField();return false" %></label>
Jean-Philippe Lang
replaced deprecated human_size by number_to_human_size...
r182 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
Jean-Philippe Lang
Localization plugin removed (replaced with GLoc)...
r12 <%= submit_tag l(:button_add) %>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% end %>
Jean-Philippe Lang
Initial commit...
r2 <% end %>