Fixed Personal Plugins tabs for en locale

This commit is contained in:
saurabhbhatia 2013-09-25 17:07:15 +08:00
parent cd8448d447
commit 5ec011a5ff
2 changed files with 6 additions and 5 deletions

View File

@ -59,13 +59,14 @@
<% if !@intro_data.blank? %> <% if !@intro_data.blank? %>
<% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %> <% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %>
<li><a href="#<%= plugin.name %>"><%= plugin.name %></a></li> <li><a href="#<%= plugin.name.gsub(' ', '') %>"><%= plugin.name %></a></li>
<% end %> <% end %>
<% else %> <% else %>
<% if !@data.blank? %> <% if !@data.blank? %>
<li><a href="#<%= plugin.name %>"><%= plugin.name %></a></li> <%= plugin.name.gsub(' ', '') %>
<li><a href="#<%= plugin.name.gsub(' ', '') %>"><%= plugin.name %></a></li>
<% end %> <% end %>
<% end %> <% end %>
@ -86,7 +87,7 @@
<% if !@intro_data.blank? %> <% if !@intro_data.blank? %>
<% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %> <% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %>
<div class="module-pane" id="<%= plugin.name %>"> <div class="module-pane" id="<%= plugin.name.gsub(' ', '') %>">
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %> <%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
</div> </div>
<% end %> <% end %>
@ -94,7 +95,7 @@
<% else %> <% else %>
<% if !@data.blank? %> <% if !@data.blank? %>
<div class="module-pane" id="<%= plugin.name %>"> <div class="module-pane" id="<%= plugin.name.gsub(' ', '') %>">
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %> <%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
</div> </div>
<% end %> <% end %>

View File

@ -5,7 +5,7 @@
<td class="span2"> <td class="span2">
<a href="<%= panel_personal_journal_back_end_writing_journal_paper_type_quick_edit_path(list_paper_type) %>#myModal3" data-toggle="modal" data-remote="true" class="action"><%= t('edit')%></a> <a href="<%= panel_personal_journal_back_end_writing_journal_paper_type_quick_edit_path(list_paper_type) %>#myModal3" data-toggle="modal" data-remote="true" class="action"><%= t('edit')%></a>
<%= link_to show_toggle_archive_btn(list_paper_type), <%= link_to 'Delete',
polymorphic_path([:panel, :personal_journal, :back_end, list_paper_type]), :confirm => t('sure?'), :method => :delete, :remote => true,:class=>"archive_toggle action" %> polymorphic_path([:panel, :personal_journal, :back_end, list_paper_type]), :confirm => t('sure?'), :method => :delete, :remote => true,:class=>"archive_toggle action" %>
</td> </td>
</tr> </tr>