diff --git a/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/index.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/index.html.erb index 98a4b8a44..055f20eb3 100644 --- a/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/index.html.erb +++ b/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/index.html.erb @@ -9,7 +9,6 @@ <%= t :category, :scope => :dictionary %> <%= t :word, :scope => :dictionary %> - <%= t :definition, :scope => :dictionary %> <%= t :time, :scope => :dictionary %> @@ -20,7 +19,6 @@ <%= vocab.dictionary_vocab_category.title %> <%= link_to truncate(vocab.word,length: 25), panel_dictionary_back_end_dictionary_vocab_path(vocab) %> - <%= truncate(vocab.definition,length: 50) %> <% if vocab.created_at > Time.now.beginning_of_day %> <%="#{time_ago_in_words(vocab.created_at)}"%> <%=t :ago,:scope => :dictionary%> diff --git a/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/show.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/show.html.erb new file mode 100644 index 000000000..918fae5d4 --- /dev/null +++ b/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/show.html.erb @@ -0,0 +1,24 @@ +
+
+ + + + + + + + + + + + + + + + + +
<%= t :category, :scope => :dictionary %><%= @vocab.dictionary_vocab_category.key %>
<%= t :word, :scope => :dictionary %><%= @vocab.word %>
<%= t :definition, :scope => :dictionary %>
<%= @vocab.definition %>
<%= link_to t(:edit),edit_panel_dictionary_back_end_dictionary_vocab_path(@vocab) %> | + <%= link_to t(:delete), panel_dictionary_back_end_dictionary_vocab_path(@vocab), method: :delete , :data => { :confirm => 'Are you sure?'} %> | + <%= link_to t(:back), panel_dictionary_back_end_dictionary_vocabs_path%>
+
+
\ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/config/locales/en.yml b/vendor/built_in_modules/dictionary/config/locales/en.yml index 1fee25ffe..6d5cde3e8 100644 --- a/vendor/built_in_modules/dictionary/config/locales/en.yml +++ b/vendor/built_in_modules/dictionary/config/locales/en.yml @@ -17,4 +17,5 @@ en: category: Category word: Word definition: Definition - time: Time \ No newline at end of file + time: Time + ago: ago \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/config/locales/zh_tw.yml b/vendor/built_in_modules/dictionary/config/locales/zh_tw.yml index bab43cc47..d2645e1fb 100644 --- a/vendor/built_in_modules/dictionary/config/locales/zh_tw.yml +++ b/vendor/built_in_modules/dictionary/config/locales/zh_tw.yml @@ -22,3 +22,4 @@ zh_tw: word: 字彙 definition: 定義 time: 時間 + ago: 前