summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-13 11:15:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-13 11:15:14 +0000
commitb39ed081142afd082b5022c4bc2b8e5194ccf608 (patch)
tree59851aa62a70d3f9a6c94f76ae1c5e581a5d8ed7
parent156e3078e205dcbf849590b343e1ae08f8f4d4d8 (diff)
downloadredmine-b39ed081142afd082b5022c4bc2b8e5194ccf608.tar.gz
redmine-b39ed081142afd082b5022c4bc2b8e5194ccf608.zip
Put news articles into <article> tags (#19339).
Patch by An Phan. git-svn-id: http://svn.redmine.org/redmine/trunk@14308 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/news/index.html.erb18
1 files changed, 11 insertions, 7 deletions
diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb
index 4560ac4fd..87eb98b4b 100644
--- a/app/views/news/index.html.erb
+++ b/app/views/news/index.html.erb
@@ -24,13 +24,17 @@
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %>
<% @newss.each do |news| %>
- <h3><%= avatar(news.author, :size => "24") %><%= link_to_project(news.project) + ': ' unless news.project == @project %>
- <%= link_to news.title, news_path(news) %>
- <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></h3>
- <p class="author"><%= authoring news.created_on, news.author %></p>
- <div class="wiki">
- <%= textilizable(news, :description) %>
- </div>
+ <article class="news-article">
+ <header>
+ <h3><%= avatar(news.author, :size => "24") %><%= link_to_project(news.project) + ': ' unless news.project == @project %>
+ <%= link_to h(news.title), news_path(news) %>
+ <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></h3>
+ <p class="author"><%= authoring news.created_on, news.author %></p>
+ </header>
+ <div class="wiki">
+ <%= textilizable(news, :description) %>
+ </div>
+ </article>
<% end %>
<% end %>
<p class="pagination"><%= pagination_links_full @news_pages %></p>