<commit_before><% @page_heading = _('Choose a theme') %>
<% i = 0 %>
<% for theme in @themes %>
  <div class='widget-container theme'>
    <h3 class='<%= theme.path == @active.path ? 'dark' : 'light' %>'>
      <span class='ui-icon <%= theme.path == @active.path ? 'ui-icon-star' : 'ui-icon-image'  %>'> </span>
      <%= theme.name %>
    </h3>
    <div class='widget-content'>
      <% 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>
      <% else -%>
        <p class='theme_select'>
          <%= link_to(_("Chose this theme"), {:action => 'switchto', :theme => theme.name}, :class => 'button') %>
        </p>
      <% 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>

<commit_msg>Moving theme selector to Bootstrap<commit_after><% @page_heading = _('Choose a theme') %>
<% i = 0 %>
<% j = 0 %>

<% for theme in @themes %>
	<% if i == 0 %>
	<div class='row'>
	<% end %>	
	<div class='span6'>
		<% if j > 1 %>
		<hr />
		<% end %>
		<h4><%= theme.name %></h4>
		<% 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 -%>
		<p><em>(<%= _("Active theme")%>)</em></p>
		<% else -%>
		<p><%= link_to(_("Chose this theme"), {:action => 'switchto', :theme => theme.name}, :class => 'btn info') %></p>
		<% end -%>		
	</div>
	

	<% if i == 1 %>
	</div>
	<% end%>
	<% i = (i == 0) ? 1 : 0%>
	<% j += 1 %>
<% end %>

<hr />
<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>


{'fraction_non_alphanumeric': 0.23856439127375087, 'fraction_numerical': 0.007741027445460943, 'mean_word_length': 3.2369597615499255, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 116, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2871946', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1004, 'n_words': 272}