Add API data to show/index views
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<%= render "search" %>
|
||||
|
||||
<%= table_for @bans, {class: "striped autofit"}, {"data-expired": ["%s", "item.expired?"]} do |t| %>
|
||||
<%= table_for @bans, {class: "striped autofit"} do |t| %>
|
||||
<% t.column "Banned User" do |ban| %>
|
||||
<%= link_to_user(ban.user) %>
|
||||
<%= link_to "»", bans_path(search: search_params.merge(user_name: ban.user.name)) %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="c-forum-posts">
|
||||
<div id="a-index">
|
||||
|
||||
<%= table_for @forum_posts, {class: "striped", width: "100%"}, {"data-is-deleted": ["%s", "item.is_deleted?"], "data-topic-is-deleted": ["%s", "item.topic.is_deleted?"]} do |t| %>
|
||||
<%= table_for @forum_posts, {class: "striped", width: "100%"} do |t| %>
|
||||
<% t.column "Topic", nil, {class: "forum-post-topic-title"} do |forum_post| %>
|
||||
<%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %>
|
||||
<% end %>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<%= yield :html_header %>
|
||||
<%= raw Danbooru.config.custom_html_header_content %>
|
||||
</head>
|
||||
<%= tag.body **body_attributes(CurrentUser.user) do %>
|
||||
<%= tag.body **body_attributes(CurrentUser.user, (defined?(@current_item) ? @current_item : nil)) do %>
|
||||
<%= render "news_updates/listing" %>
|
||||
|
||||
<header id="top">
|
||||
|
||||
Reference in New Issue
Block a user