Remove extra double quote in sub_menu
Fix web link widget pagination
This commit is contained in:
1 parent
bab8328029
commit
17d93409b3
4 files changed
+32
-27
No files matched your search
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
<% if @current_category %>
|
||||
<h1 class="h1"><%= @current_category.title + " " + t(:list_lower) %></h1>
|
||||
<% elsif @tag %>
|
||||
<h1 class="h1"><%= @tag[I18n.locale] + " " + t(:list_lower) %></h1>
|
||||
<% else %>
|
||||
<h1 class="h1"><%= t('list.link') %></h1>
|
||||
<% end %>
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><%= t(:category) %></th>
|
||||
<th><%= t(:name) %></th>
|
||||
</tr>
|
||||
<% @web_links.each do |post| %>
|
||||
<tr>
|
||||
<td><%= post.web_link_category.title rescue nil %></td>
|
||||
<td>
|
||||
<%= link_to post.title, post.url, {:target => '_blank', :title => post.title} %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<%#= paginate @web_links, :params => {:inner => 'true'}, :remote => true %>
|
||||
<%= paginate @web_links, :params => {:inner => 'false'}, :remote => true %>
|
||||
Vendored
+3
-26
@@ -1,26 +1,3 @@
|
||||
<% if @current_category %>
|
||||
<h1 class="h1"><%= @current_category.title + " " + t(:list_lower) %></h1>
|
||||
<% elsif @tag %>
|
||||
<h1 class="h1"><%= @tag[I18n.locale] + " " + t(:list_lower) %></h1>
|
||||
<% else %>
|
||||
<h1 class="h1"><%= t('list.link') %></h1>
|
||||
<% end %>
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><%= t(:category) %></th>
|
||||
<th><%= t(:name) %></th>
|
||||
</tr>
|
||||
<% @web_links.each do |post| %>
|
||||
<tr>
|
||||
<td><%= post.web_link_category.title rescue nil %></td>
|
||||
<td>
|
||||
<%= link_to post.title, post.url, {:target => '_blank', :title => post.title} %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<%= paginate @web_links, :params => {:inner => 'false'} %>
|
||||
<div id="web_link_widget">
|
||||
<%= render 'index' %>
|
||||
</div>
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
$('#web_link_widget').html("<%= j render 'index' %>")
|
||||
Reference in new issue
Block a user