HTML validation
This commit is contained in:
parent
1f8636d217
commit
782d38c664
@ -69,14 +69,14 @@
|
||||
<div class="splitcontentright clear">
|
||||
<p>
|
||||
<%= label_tag('file_upload', "#{l(:label_new_content)}:") %>
|
||||
<div class="data">
|
||||
<%= file_field_tag('file_upload') %>
|
||||
<br/>
|
||||
<small>
|
||||
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
|
||||
</small>
|
||||
</div>
|
||||
</p>
|
||||
</p>
|
||||
<div class="data">
|
||||
<%= file_field_tag('file_upload') %>
|
||||
<br/>
|
||||
<small>
|
||||
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<br style="clear: both"/>
|
||||
<div class="custom_fields">
|
||||
@ -87,12 +87,12 @@
|
||||
<div class="comment">
|
||||
<p>
|
||||
<%= label_tag('dmsf_file_revision_comment', "#{l(:label_comment)}:") %>
|
||||
<div class="data">
|
||||
<%= f.text_area(:comment, :rows=> 2, :style => 'width: 99%;') %>
|
||||
</div>
|
||||
</p>
|
||||
<div class="data">
|
||||
<%= f.text_area(:comment, :rows=> 2, :style => 'width: 99%;') %>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br/>
|
||||
<%= submit_tag(l(:submit_create)) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@ -19,25 +19,24 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
%>
|
||||
<p>
|
||||
<table class="display access-table list">
|
||||
<thead>
|
||||
<br/>
|
||||
<table class="display access-table list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= l(:field_user) %></th>
|
||||
<th><%= l(:heading_access_downloads_emails) %></th>
|
||||
<th><%= l(:heading_access_first) %></th>
|
||||
<th><%= l(:heading_access_last) %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% revision.access_grouped.each do |access| %>
|
||||
<tr>
|
||||
<th><%= l(:field_user) %></th>
|
||||
<th><%= l(:heading_access_downloads_emails) %></th>
|
||||
<th><%= l(:heading_access_first) %></th>
|
||||
<th><%= l(:heading_access_last) %></th>
|
||||
<td><%= link_to_user(access.user) %></td>
|
||||
<td><%= access['count'] %></td>
|
||||
<td><%= format_time(DmsfHelper::to_time(access.first_at)) %></td>
|
||||
<td><%= format_time(DmsfHelper::to_time(access.last_at)) %></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% revision.access_grouped.each do |access| %>
|
||||
<tr>
|
||||
<td><%= link_to_user(access.user) %></td>
|
||||
<td><%= access['count'] %></td>
|
||||
<td><%= format_time(DmsfHelper::to_time(access.first_at)) %></td>
|
||||
<td><%= format_time(DmsfHelper::to_time(access.last_at)) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</p>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -142,13 +142,12 @@
|
||||
<%= h(revision.comment) %>
|
||||
</div>
|
||||
<br/>
|
||||
<div id="<%= "revision_access-#{revision.id}" %>" style="display:none">
|
||||
<%= render(:partial => 'revision_access', :locals => {:revision => revision}) if User.current.allowed_to?(:file_manipulation, @file.project) %>
|
||||
<div id="<%= "revision_access-#{revision.id}" %>" style="display:none">
|
||||
<%= render(:partial => 'revision_access', :locals => {:revision => revision}) if User.current.allowed_to?(:file_manipulation, @file.project) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<br/>
|
||||
<br/>-->
|
||||
<br/>
|
||||
<% end %>
|
||||
|
||||
<p class="pagination"><%= pagination_links_full @revision_pages, @file.revisions.visible.count %></p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user