index.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:2k
- <% @page_heading = _('Choose a theme') %>
- <% subtabs_for(:themes) %>
- <% i = 0 %>
- <% for theme in @themes %>
- <div class='dashboard-left ui-accordion ui-widget ui-helper-reset ui-accordion-icons theme settings'>
- <h3 class='ui-accordion-header ui-helper-reset <%= theme.path == @active.path ? 'ui-state-active' : 'ui-state-default' %> ui-corner-top'>
- <span class='ui-icon <%= theme.path == @active.path ? 'ui-icon-star' : 'ui-icon-image' %>'> </span>
- <%= theme.name %>
- </h3>
- <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
- <% if theme.path == @active.path -%>
- <%= image_tag(url_for(:action => 'preview', :theme => theme.name, :skip_relative_url_root => true)) %>
- <% else %>
- <%= link_to(image_tag(url_for(:action => 'preview', :theme => theme.name, :skip_relative_url_root => true)), :action => 'switchto', :theme => theme.name) %>
- <% end %>
- <%= theme.description_html %>
- <% if theme.path == @active.path -%>
- <em>(<%= _("Active theme")%>)</em>
- <% end -%>
- </div>
- </div>
- <% if i == 2 %>
- <% i = 0 %>
- <br class='clear' />
- <% else %>
- <% i+=1 %>
- <% end %>
- <% end %>
- <hr class="clear" />
- <h2><%= _("Get more themes")%> </h2>
- <p>
- <%= _("You can download third party themes from officially supported %s ", link_to(_("Typogarden"), 'http://typogarden.org'))%> <%= _("To install a theme you just need to upload the theme folder into your themes directory. Once a theme is uploaded, you should see it on this page.") %>
- </p>