]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/issues/_history.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 1 Sep 2011 13:52:18 +0000 (13:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 1 Sep 2011 13:52:18 +0000 (13:52 +0000)
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7010 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_history.html.erb [new file with mode: 0644]
app/views/issues/_history.rhtml [deleted file]

diff --git a/app/views/issues/_history.html.erb b/app/views/issues/_history.html.erb
new file mode 100644 (file)
index 0000000..9c9f78e
--- /dev/null
@@ -0,0 +1,21 @@
+<% reply_links = authorize_for('issues', 'edit') -%>
+<% for journal in journals %>
+  <div id="change-<%= journal.id %>" class="<%= journal.css_classes %>">
+    <h4><div class="journal-link"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
+    <%= avatar(journal.user, :size => "24") %>
+    <%= content_tag('a', '', :name => "note-#{journal.indice}")%>
+               <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %></h4>
+    
+    <% if journal.details.any? %>
+    <ul class="details">
+      <% for detail in journal.details %>
+       <li><%= show_detail(detail) %></li>
+      <% end %>
+    </ul>
+    <% end %>
+    <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
+  </div>
+  <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
+<% end %>
+
+<% heads_for_wiki_formatter if User.current.allowed_to?(:edit_issue_notes, issue.project) || User.current.allowed_to?(:edit_own_issue_notes, issue.project) %>
diff --git a/app/views/issues/_history.rhtml b/app/views/issues/_history.rhtml
deleted file mode 100644 (file)
index 9c9f78e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<% reply_links = authorize_for('issues', 'edit') -%>
-<% for journal in journals %>
-  <div id="change-<%= journal.id %>" class="<%= journal.css_classes %>">
-    <h4><div class="journal-link"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
-    <%= avatar(journal.user, :size => "24") %>
-    <%= content_tag('a', '', :name => "note-#{journal.indice}")%>
-               <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %></h4>
-    
-    <% if journal.details.any? %>
-    <ul class="details">
-      <% for detail in journal.details %>
-       <li><%= show_detail(detail) %></li>
-      <% end %>
-    </ul>
-    <% end %>
-    <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
-  </div>
-  <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
-<% end %>
-
-<% heads_for_wiki_formatter if User.current.allowed_to?(:edit_issue_notes, issue.project) || User.current.allowed_to?(:edit_own_issue_notes, issue.project) %>