make journal list easy to read
This commit is contained in:
parent
4f31b1362b
commit
05027afa63
|
@ -7,8 +7,7 @@ class Desktop::JournalListsController < ApplicationController
|
||||||
[ j.journal_title,
|
[ j.journal_title,
|
||||||
j.journal_level_type_ids.map do |type|
|
j.journal_level_type_ids.map do |type|
|
||||||
level_types.find(type).title
|
level_types.find(type).title
|
||||||
end.join(",")
|
end]
|
||||||
].join(" -- ")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@journal_lists = all_journal_lists.uniq
|
@journal_lists = all_journal_lists.uniq
|
||||||
|
|
|
@ -10,9 +10,12 @@
|
||||||
<div class="s_grid_con s_form">
|
<div class="s_grid_con s_form">
|
||||||
<ul>
|
<ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<li class="s_grid_row">
|
<li class="s_grid_row">
|
||||||
<%= journal_list %>
|
<% title, level = journal_list %>
|
||||||
|
<%= title %> -- <%= level.join(",") %>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<% if ( i % 5 ) == 4 %>
|
<% if ( i % 5 ) == 4 %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue