summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-05 19:10:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-05 19:10:57 +0000
commit776d5ce554cdf0229c0a90fae0321e3506a5d849 (patch)
tree79431115d494b8ecd1254709a936d1a87db94aa8 /app/views/repositories
parent28ea323791d0945981f6059e0c9e840547082c2c (diff)
downloadredmine-776d5ce554cdf0229c0a90fae0321e3506a5d849.tar.gz
redmine-776d5ce554cdf0229c0a90fae0321e3506a5d849.zip
XHTML compliance improvements
git-svn-id: http://redmine.rubyforge.org/svn/trunk@150 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/_dir_list.rhtml2
-rw-r--r--app/views/repositories/browse.rhtml13
-rw-r--r--app/views/repositories/diff.rhtml8
-rw-r--r--app/views/repositories/revision.rhtml13
-rw-r--r--app/views/repositories/revisions.rhtml15
-rw-r--r--app/views/repositories/show.rhtml8
6 files changed, 36 insertions, 23 deletions
diff --git a/app/views/repositories/_dir_list.rhtml b/app/views/repositories/_dir_list.rhtml
index 635fba528..7b80c5f1f 100644
--- a/app/views/repositories/_dir_list.rhtml
+++ b/app/views/repositories/_dir_list.rhtml
@@ -20,4 +20,4 @@
end %>
</tbody>
</table>
-<p align="right"><em><%= l(:label_total) %>: <%= human_size(total_size) %></em></p> \ No newline at end of file
+<p class="textright"><em><%= l(:label_total) %>: <%= human_size(total_size) %></em></p> \ No newline at end of file
diff --git a/app/views/repositories/browse.rhtml b/app/views/repositories/browse.rhtml
index 92ad8478b..cdd4e6882 100644
--- a/app/views/repositories/browse.rhtml
+++ b/app/views/repositories/browse.rhtml
@@ -1,11 +1,14 @@
-<%= stylesheet_link_tag "scm" %>
-
<div class="contextual">
<%= start_form_tag %>
-<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
-<%= submit_tag 'OK' %>
+<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
+<%= submit_tag 'OK' %></p>
+<%= end_form_tag %>
</div>
<h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
-<%= render :partial => 'dir_list' %> \ No newline at end of file
+<%= render :partial => 'dir_list' %>
+
+<% content_for :header_tags do %>
+<%= stylesheet_link_tag "scm" %>
+<% end %> \ No newline at end of file
diff --git a/app/views/repositories/diff.rhtml b/app/views/repositories/diff.rhtml
index d4350cb61..0060e7867 100644
--- a/app/views/repositories/diff.rhtml
+++ b/app/views/repositories/diff.rhtml
@@ -1,7 +1,5 @@
<h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
-<%= stylesheet_link_tag "scm" %>
-
<table class="list">
<thead><tr><th>@<%= @rev %></th><th>@<%= @rev_to %></th><th></th></tr></thead>
<tbody>
@@ -52,4 +50,8 @@ line_num_r = 0 %>
<% end %>
</tbody>
-</table> \ No newline at end of file
+</table>
+
+<% content_for :header_tags do %>
+<%= stylesheet_link_tag "scm" %>
+<% end %> \ No newline at end of file
diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml
index 19e980825..f616a0180 100644
--- a/app/views/repositories/revision.rhtml
+++ b/app/views/repositories/revision.rhtml
@@ -1,9 +1,8 @@
-<%= stylesheet_link_tag "scm" %>
-
<div class="contextual">
<%= start_form_tag %>
-<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
-<%= submit_tag 'OK' %>
+<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
+<%= submit_tag 'OK' %></p>
+<%= end_form_tag %>
</div>
<h2><%= l(:label_revision) %> <%= @revision.identifier %></h2>
@@ -32,4 +31,8 @@
<% end %>
</tbody>
</table>
-<p><%= lwr(:label_modification, @revision.paths.length) %></p> \ No newline at end of file
+<p><%= lwr(:label_modification, @revision.paths.length) %></p>
+
+<% content_for :header_tags do %>
+<%= stylesheet_link_tag "scm" %>
+<% end %> \ No newline at end of file
diff --git a/app/views/repositories/revisions.rhtml b/app/views/repositories/revisions.rhtml
index 851c85858..6ab8df400 100644
--- a/app/views/repositories/revisions.rhtml
+++ b/app/views/repositories/revisions.rhtml
@@ -1,9 +1,8 @@
-<%= stylesheet_link_tag "scm" %>
-
<div class="contextual">
<%= start_form_tag %>
-<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
-<%= submit_tag 'OK' %>
+<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
+<%= submit_tag 'OK' %></p>
+<%= end_form_tag %>
</div>
<h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => @entry.kind, :revision => @rev } %></h2>
@@ -29,10 +28,14 @@
<th align="center"><%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %></th>
<td align="center"><em><%=h revision.author %></em></td>
<td align="center"><%= format_time(revision.time) %></td>
-<td width="70%"><%= textilizable(revision.message) %></td>
+<td style="width:70%"><%= textilizable(revision.message) %></td>
<td align="center"><%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %></td>
</tr>
<% end %>
</tbody>
</table>
-<p><%= lwr(:label_modification, @revisions.length) %></p> \ No newline at end of file
+<p><%= lwr(:label_modification, @revisions.length) %></p>
+
+<% content_for :header_tags do %>
+<%= stylesheet_link_tag "scm" %>
+<% end %> \ No newline at end of file
diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml
index 4c95f8844..9c2adc929 100644
--- a/app/views/repositories/show.rhtml
+++ b/app/views/repositories/show.rhtml
@@ -1,5 +1,3 @@
-<%= stylesheet_link_tag "scm" %>
-
<h2><%= l(:label_repository) %></h2>
<h3><%= l(:label_revision_plural) %></h3>
@@ -12,4 +10,8 @@
<h3><%= l(:label_browse) %></h3>
-<%= render :partial => 'dir_list' %> \ No newline at end of file
+<%= render :partial => 'dir_list' %>
+
+<% content_for :header_tags do %>
+<%= stylesheet_link_tag "scm" %>
+<% end %> \ No newline at end of file