Commit 89c31c032eb2f8df71fbaacdc892f353745ed2ea

Authored by Aurelio A. Heckert
Committed by Antonio Terceiro
1 parent 12923d40

Preview images for the themes

app/views/themes/index.rhtml
@@ -13,9 +13,11 @@ @@ -13,9 +13,11 @@
13 <% 13 <%
14 selected = (!template.nil? && (@current_template == template.id)) 14 selected = (!template.nil? && (@current_template == template.id))
15 %> 15 %>
16 - <td> 16 + <td class="template-preview-cell">
17 <% if template %> 17 <% if template %>
18 - <%= image_tag("/designs/templates/#{template.id}/thumbnail.png", :alt => _('The "%s" template')) %> 18 + <%= image_tag("/designs/templates/#{template.id}/thumbnail.png",
  19 + :class => 'template-preview',
  20 + :alt => _('The "%s" template')) %>
19 <% end %> 21 <% end %>
20 </td> 22 </td>
21 <td <%= 'class="selected template"' if selected %>> 23 <td <%= 'class="selected template"' if selected %>>
@@ -49,9 +51,10 @@ @@ -49,9 +51,10 @@
49 selected = (!theme.nil? && (theme.id == @current_theme)) 51 selected = (!theme.nil? && (theme.id == @current_theme))
50 %> 52 %>
51 <td> 53 <td>
52 - <%# FIXME add proper thumbnails %>  
53 <% if theme %> 54 <% if theme %>
54 - <%= image_tag('/images/icons-app/design-editor.png', :alt => (_('The "%s" theme.') % theme.name)) %> 55 + <%= image_tag("/designs/themes/#{theme.name}/preview.png",
  56 + :class => 'theme-preview',
  57 + :alt => (_('The "%s" theme.') % theme.name)) %>
55 <% end %> 58 <% end %>
56 </td> 59 </td>
57 <td <%= 'class="selected theme"' if selected %>> 60 <td <%= 'class="selected theme"' if selected %>>
public/designs/themes/aluminium/preview.png 0 → 100644

8.18 KB

public/designs/themes/butter/preview.png 0 → 100644

8.16 KB

public/designs/themes/chameleon/preview.png 0 → 100644

8.26 KB

public/designs/themes/chocolate/preview.png 0 → 100644

8.24 KB

public/designs/themes/chocolate/preview.xcf 0 → 100644
No preview for this file type
public/designs/themes/noosfero/preview.png 0 → 100644

6 KB

public/designs/themes/noosfero/preview.xcf 0 → 100644
No preview for this file type
public/designs/themes/orange/preview.png 0 → 100644

8.16 KB

public/designs/themes/plum/preview.png 0 → 100644

8.25 KB

public/designs/themes/scarletred/preview.png 0 → 100644

8.12 KB

public/designs/themes/skyblue/preview.png 0 → 100644

8.26 KB

public/stylesheets/application.css
@@ -4071,6 +4071,15 @@ h1#agenda-title { @@ -4071,6 +4071,15 @@ h1#agenda-title {
4071 4071
4072 /* ==> public/stylesheets/controller_themes.css <== */ 4072 /* ==> public/stylesheets/controller_themes.css <== */
4073 /* common stuff */ 4073 /* common stuff */
  4074 +
  4075 +.controller-themes .template-preview-cell {
  4076 + text-align: center;
  4077 +}
  4078 +
  4079 +.controller-themes .theme-preview {
  4080 + border: 1px solid #BBB;
  4081 +}
  4082 +
4074 .controller-themes #css-files-list h2, 4083 .controller-themes #css-files-list h2,
4075 .controller-themes #image-files-list h2 { 4084 .controller-themes #image-files-list h2 {
4076 margin-top: 0px; 4085 margin-top: 0px;