fixes #1696
This commit is contained in:
@@ -145,6 +145,10 @@ class Pool < ActiveRecord::Base
|
|||||||
name.tr("_", " ")
|
name.tr("_", " ")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def pretty_category
|
||||||
|
category.titleize
|
||||||
|
end
|
||||||
|
|
||||||
def creator_name
|
def creator_name
|
||||||
User.id_to_name(creator_id)
|
User.id_to_name(creator_id)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<li><%= render "pools/quick_search" %></li>
|
<li><%= render "pools/quick_search" %></li>
|
||||||
<li><%= link_to "Listing", pools_path %></li>
|
<li><%= link_to "Listing", pools_path %></li>
|
||||||
<li><%= link_to "New", new_pool_path %></li>
|
<li><%= link_to "New", new_pool_path %></li>
|
||||||
|
<li><%= link_to "Help", wiki_pages_path(:search => {:title => "help:pools"}) %></li>
|
||||||
<% if CurrentUser.is_member? && @pool && !@pool.new_record? %>
|
<% if CurrentUser.is_member? && @pool && !@pool.new_record? %>
|
||||||
<li>|</li>
|
<li>|</li>
|
||||||
<li><%= link_to "Show", pool_path(@pool) %></li>
|
<li><%= link_to "Show", pool_path(@pool) %></li>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-pools">
|
<div id="c-pools">
|
||||||
<div id="a-show">
|
<div id="a-show">
|
||||||
<h1>
|
<h1>
|
||||||
Pool:
|
<%= @pool.pretty_category %>:
|
||||||
<%= link_to @pool.pretty_name, pool_path(@pool), :class => "pool-category-#{@pool.category}" %>
|
<%= link_to @pool.pretty_name, pool_path(@pool), :class => "pool-category-#{@pool.category}" %>
|
||||||
<% if @pool.is_deleted? %>
|
<% if @pool.is_deleted? %>
|
||||||
<span class="inactive">(deleted)</span>
|
<span class="inactive">(deleted)</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user