add journal_list. now, those pair, (journal_title, journal_levels), is uniq

This commit is contained in:
Rueshyna committed 2012-11-30 23:50:46 +08:00
1 parent ccacef6d9e
commit cc6339d59b
5 files changed
+52 -27

No files matched your search

+21 -18
View File
@@ -1,21 +1,24 @@
<h1>Listing desktop_journal_lists</h1>
<h1>journal_title -- journal_level</h1>
<table>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
<div class="viewport">
<div class="overview">
<div class="s_grid_con s_form">
<% @desktop_journal_lists.each do |desktop_journal_list| %>
<tr>
<td><%= link_to 'Show', desktop_journal_list %></td>
<td><%= link_to 'Edit', edit_desktop_journal_list_path(desktop_journal_list) %></td>
<td><%= link_to 'Destroy', desktop_journal_list, confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
</table>
<% @journal_lists.each_with_index do |journal_list,i| %>
<% if ( i % 5 ) == 0 %>
<div class="s_grid_con s_form">
<ul>
<% end %>
<li class="s_grid_row">
<%= journal_list %>
</li>
<% if ( i % 5 ) == 4 %>
</ul>
</div>
<% end %>
<% end %>
<br />
<%= link_to 'New Journal list', new_desktop_journal_list_path %>
</div>
</div>
</div>
+2 -2
View File
@@ -14,8 +14,8 @@
<div class="s_menu sm_v" content-type="menu">
<ul id='setting_left_nav'>
<li><a href="<%= desktop_journal_pages_path %>" callback-method="list" load="true" class="hh2 w2 hp thmc1 thmtxt xx" onclick='return false;'>List</a></li>
<li><a href="<%= new_desktop_journal_page_path %>" custom-load="addpaper" callback-method="addpaper" custom-load="addpaper" class="admtxt hh2 w2 hp xx" onclick='return false;'>Add/Edit</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Journals</a></li>
<li><a href="<%= new_desktop_journal_page_path %>" callback-method="addpaper" custom-load="addpaper" class="admtxt hh2 w2 hp xx" onclick='return false;'>Add/Edit</a></li>
<li><a href="<%= desktop_journal_lists_path %>" callback-method="journal" class="admtxt hh2 w2 hp" onclick='return false;'>Journals</a></li>
<li><a href="<%= new_desktop_co_author_path %>" class="admtxt hh2 w2 hp" callback-method="coauthor" custom-load="coauthor" onclick='return false;'>Co-Authors</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Tags &amp; Keywords</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Analysis</a></li>