make journal list easy to read

This commit is contained in:
Rueshyna 2012-12-05 15:33:47 +08:00
parent 3e752b94ec
commit 27ae41c833
5 changed files with 5 additions and 3 deletions

View File

@ -7,8 +7,7 @@ class Desktop::JournalListsController < ApplicationController
[ j.journal_title,
j.journal_level_type_ids.map do |type|
level_types.find(type).title
end.join(",")
].join(" -- ")
end]
end
@journal_lists = all_journal_lists.uniq

0
app/views/desktop/app_manager.html.erb Executable file → Normal file
View File

0
app/views/desktop/desktop.html.erb Executable file → Normal file
View File

0
app/views/desktop/index.html.erb Executable file → Normal file
View File

View File

@ -10,9 +10,12 @@
<div class="s_grid_con s_form">
<ul>
<% end %>
<li class="s_grid_row">
<%= journal_list %>
<% title, level = journal_list %>
<%= title %> -- <%= level.join(",") %>
</li>
<% if ( i % 5 ) == 4 %>
</ul>
</div>