Skip to content

Commit

Permalink
fixed about page
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Aug 26, 2012
1 parent bf5f908 commit cb292c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/pages_controller.rb
Expand Up @@ -22,7 +22,7 @@ def index
def about
if @current_user
@users = User.order("username").where("officer = true and council_id = ?", @current_user.council_id)
else
elsif @council
@users = User.order("username").where("officer = true and council_id = ?", @council.id)
end

Expand All @@ -35,7 +35,7 @@ def news
end

def contact

if @council and !@council.email.blank?
@tomail = @council.email
else
Expand Down
2 changes: 2 additions & 0 deletions app/views/pages/about.html.erb
Expand Up @@ -9,6 +9,7 @@
<p><%=@council.about%></p><br />
<p><a class="btn btn-primary btn-large" href="/join">Join Us! &raquo;</a></p>

<% if @users %>
<a name="officers"></a>
<h2>Council Officers</h2>
<p>
Expand Down Expand Up @@ -46,6 +47,7 @@
</table>

</p>
<% end %>

<h2>Contact Us</h2>

Expand Down

0 comments on commit cb292c6

Please sign in to comment.