Commit 17071057ebde2072752491318760a5d6072d450b

Authored by Rodrigo Souto
1 parent 2ca87f91

Adding title to cms article mime-type

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
app/views/cms/view.rhtml
@@ -45,10 +45,11 @@ @@ -45,10 +45,11 @@
45 <td class="article-name"> 45 <td class="article-name">
46 <%= link_to_article(article) %> 46 <%= link_to_article(article) %>
47 </td> 47 </td>
48 - <td class="article-mime">  
49 - <%= article.respond_to?(:short_description) ?  
50 - article.short_description :  
51 - article.class.short_description %> 48 + <% short_description = article.respond_to?(:short_description) ?
  49 + article.short_description :
  50 + article.class.short_description %>
  51 + <td class="article-mime" title=<%= short_description.to_json %>>
  52 + <%= short_description %>
52 </td> 53 </td>
53 <td class="article-controls"> 54 <td class="article-controls">
54 <%= expirable_button article, :edit, _('Edit'), {:action => 'edit', :id => article.id} if !remove_content_button(:edit) %> 55 <%= expirable_button article, :edit, _('Edit'), {:action => 'edit', :id => article.id} if !remove_content_button(:edit) %>