Sha256: 54f4ba973903a21ce0a610b88fe2c9363ad32be985e6a00600c1198c9df48496

Contents?: true

Size: 1.33 KB

Versions: 15

Compression:

Stored size: 1.33 KB

Contents

<div style="background:#FDFFF0; border:1px #ccc dotted; margin-bottom:10px; padding:5px; ">
  <% def_size = @definitions.values.sum{|v| v.size} %>
  <%= trla("Found {def_count||definition} for {word_count||word}:", "", :def_count => def_size, :word_count => @definitions.keys.size) %>
  <%= (sorted_words = @definitions.keys.sort).collect{|w| "<strong>#{w}</strong>".html_safe}.join(", ").html_safe %>
</div>

<table style="width:100%">
 <% sorted_words.each do |word| %>
    <% @definitions[word].each do |definition| %>
	   <tr style="border-bottom:1px solid #ccc;">
	     <th style="text-align:left;color: #ccc;font-size:14px; font-family:arial; width:200px;"><%=trla("Word")%></th>
	     <th style="text-align:left;color: #ccc;font-size:14px; font-family:arial;"><%=trla("Definition")%></th>
	     <th style="text-align:left;color: #ccc;font-size:14px; font-family:arial;"><%=trla("Source")%></th>
	   </tr>
	    <tr style="border-bottom:1px dotted #ccc;">
			  <td style="vertical-align:top; font-size:12px; font-family:arial; font-weight:bold;"><%=word%></td>
        <td>
        	 <pre style="font-size:12px; font-family:arial"><%=definition[:definition]%></pre>
        </td>
        <td style="vertical-align:top; font-size:12px; font-family:arial;">
            <%=definition[:source]%>
        </td>
	    </tr>
		<% end %>
		
 <% end %>
</table>


Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.2.2 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.2.1 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.2.0 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.1.8 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.1.7 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.1.6 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.1.5 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.1.4 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.1.3 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.1.2 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.1.1 app/views/tr8n/phrases/_dictionary.html.erb
tr8n-3.0.5 app/views/tr8n/phrases/_dictionary.rhtml
tr8n-3.0.3 app/views/tr8n/phrases/_dictionary.rhtml
tr8n-3.0.2 app/views/tr8n/phrases/_dictionary.rhtml