company review

This commit is contained in:
Matthew K. Fu JuYuan 2013-08-26 14:30:45 +08:00 committed by chris
parent ab29dd4335
commit bc38e24259
6 changed files with 11 additions and 26 deletions

View File

@ -1,17 +1,17 @@
<br />
<div class="offset1">
<div class="site-map">
<h4><%= t :category, :scope => :dictionary %></h4>
<%= f.collection_select :dictionary_vocab_category_id, @categories, :id, :title %>
</div>
<div class="offset1">
<div class="site-map">
<h4><%= t :word, :scope => :dictionary %></h4>
<%= f.text_field :word %>
</div>
<div class="offset1">
<div class="site-map">
<h4><%= t :definition, :scope => :dictionary %></h4>
<%= f.text_area :definition %>
<%= f.text_field :definition %>
</div>
<br />
<div class="offset1">
<div class="site-map">
<%= f.submit t('submit'), class: 'btn btn-primary'%>
</div>

View File

@ -1,5 +1,3 @@
<div class="row">
<div class="span8 offset1">
<% flash.each do |key, value| %>
<div class="alert alert-<%= key %>"><%= value %></div>
<% end %>
@ -32,5 +30,3 @@
</tbody>
</table>
</div>
</div>

View File

@ -1,5 +1,3 @@
<div class="row">
<div class="span8 offset1">
<table class="table" align ="center">
<tr>
<td ><%= t :category, :scope => :dictionary %></td>
@ -29,5 +27,3 @@
<%= link_to t(:back), panel_dictionary_back_end_dictionary_vocabs_path%></td>
</tr>
</table>
</div>
</div>

View File

@ -6,7 +6,7 @@
<tr>
<th class="span2"><%= t :category, :scope => :dictionary %></th>
<th class="span2"><%= t :word, :scope => :dictionary %></th>
<th class="span2"><%= t :time, :scope => :dictionary %></th>
<th class="span2"><%= t :definition, :scope => :dictionary %></th>
</tr>
</thead>
@ -15,14 +15,7 @@
<tr>
<td><%= vocab.dictionary_vocab_category.title %></td>
<td><%= link_to truncate(vocab.word,length: 25), panel_dictionary_front_end_dictionary_vocab_path(vocab) %></td>
<td>
<% if vocab.created_at > Time.now.beginning_of_day %>
<%="#{time_ago_in_words(vocab.created_at)}"%>
<%=t :ago,:scope => :dictionary%>
<% else %>
<%= vocab.created_at.strftime("%Y/%m/%d") %>
<% end %>
</td>
<td><%= link_to truncate(vocab.definition,length: 25), panel_dictionary_front_end_dictionary_vocab_path(vocab) %></td>
</tr>
<% end %>
</tbody>
@ -30,4 +23,4 @@
</div>
</div>
<%= paginate(@vocabs, :param_name => :page_main, :params => {:inner => 'false'} ) rescue nil %>
<%= paginate(@vocabs, :param_name => :page_main, :params => {:inner => 'false'} ) rescue nil %>

View File

@ -3,7 +3,7 @@
<table class="table" align ="center">
<tr>
<td ><%= t :category, :scope => :dictionary %></td>
<td><%= @vocab.dictionary_vocab_category.key %></td>
<td><%= @vocab.dictionary_vocab_category.title %></td>
</tr>
<tr>
<td ><%= t :word, :scope => :dictionary %></td>

View File

@ -21,8 +21,8 @@ zh_tw:
dictionary: 字典前台
dictionary: 字彙辭典
category: 類別
word: 字彙
definition: 定義
word: 字彙中文
definition: 英文定義
time: 建立時間
ago:
new: 新增