This commit is contained in:
Toks
2013-05-30 19:05:51 -04:00
parent 4d8ed12cc4
commit 0544759dec
3 changed files with 6 additions and 1 deletions

View File

@@ -145,6 +145,10 @@ class Pool < ActiveRecord::Base
name.tr("_", " ")
end
def pretty_category
category.titleize
end
def creator_name
User.id_to_name(creator_id)
end

View File

@@ -3,6 +3,7 @@
<li><%= render "pools/quick_search" %></li>
<li><%= link_to "Listing", pools_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? %>
<li>|</li>
<li><%= link_to "Show", pool_path(@pool) %></li>

View File

@@ -1,7 +1,7 @@
<div id="c-pools">
<div id="a-show">
<h1>
Pool:
<%= @pool.pretty_category %>:
<%= link_to @pool.pretty_name, pool_path(@pool), :class => "pool-category-#{@pool.category}" %>
<% if @pool.is_deleted? %>
<span class="inactive">(deleted)</span>