diff --git a/app/assets/stylesheets/common/main_layout.css.scss b/app/assets/stylesheets/common/main_layout.css.scss index 2f6de2dc5..70dc5acee 100644 --- a/app/assets/stylesheets/common/main_layout.css.scss +++ b/app/assets/stylesheets/common/main_layout.css.scss @@ -25,7 +25,7 @@ div#page { } aside#sidebar { - width: 20%; + width: 15%; float: left; h1 { @@ -46,7 +46,7 @@ div#page { } section#content { - width: 75%; + width: 80%; float: left; padding-left: 2em; overflow: visible; diff --git a/app/controllers/pools_controller.rb b/app/controllers/pools_controller.rb index b0944a77b..cb43bd1f0 100644 --- a/app/controllers/pools_controller.rb +++ b/app/controllers/pools_controller.rb @@ -16,7 +16,7 @@ class PoolsController < ApplicationController def index @search = Pool.active.search(params[:search]) - @pools = @search.paginate(params[:page]) + @pools = @search.paginate(params[:page]).order("name") respond_with(@pools) end diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index 41d42e776..d6ea6c938 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -44,7 +44,7 @@ class UserPresenter string = "base:10 + approved:(#{approved_count} / 10) - deleted:(#{deleted_count}) / 4 - pending:#{pending_count}" end - if limit > 20 + if limit >= 20 limit = 20 string += " = capped:20" elsif limit < 0 diff --git a/app/views/forum_topics/index.html.erb b/app/views/forum_topics/index.html.erb index ffb4461fe..d26bed1ab 100644 --- a/app/views/forum_topics/index.html.erb +++ b/app/views/forum_topics/index.html.erb @@ -26,7 +26,7 @@ <%= link_to topic.title, forum_topic_path(topic) %> <% if topic.response_count > 30 %> - <%= link_to "last", forum_topic_path(topic, :page => (topic.response_count / 30.0).ceil), :class => "last-page" %> + <%= link_to "last", forum_topic_path(topic, :page => (topic.response_count / Danbooru.config.posts_per_page.to_f).ceil), :class => "last-page" %> <% end %> <% if topic.is_locked? %> diff --git a/app/views/posts/partials/show/_information.html.erb b/app/views/posts/partials/show/_information.html.erb index 29c87bc83..5724108d8 100644 --- a/app/views/posts/partials/show/_information.html.erb +++ b/app/views/posts/partials/show/_information.html.erb @@ -13,6 +13,7 @@