Skip to content

Commit

Permalink
Only show books if you are logged in.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrés Mejía committed Jan 14, 2013
1 parent 4d3fe6b commit fe8535c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/views/contests/index.html.erb
Expand Up @@ -29,11 +29,13 @@
<ul> <ul>
<li><%= link_to "COCI", "http://hsin.hr/coci/" %></li> <li><%= link_to "COCI", "http://hsin.hr/coci/" %></li>
</ul> </ul>
<h3>Books</h3> <% if logged_in? %>
<ul> <h3>Books</h3>
<li><%= link_to "Introduction to Algorithms", "http://s3.amazonaws.com/andmej/cormen.pdf" %></li> <ul>
<li><%= link_to "Introduction to Algorithms (Instructor's manual)", "http://s3.amazonaws.com/andmej/cormen_instructor_manual.pdf" %></li> <li><%= link_to "Introduction to Algorithms", "http://s3.amazonaws.com/andmej/cormen.pdf" %></li>
<li><%= link_to "The Algorithm Design Manual", "http://www.cs.sysu.edu.cn/~lxm/DSA/textbook/Skiena.-.TheAlgorithmDesignManual.pdf" %></li> <li><%= link_to "Introduction to Algorithms (Instructor's manual)", "http://s3.amazonaws.com/andmej/cormen_instructor_manual.pdf" %></li>
<li><%= link_to "Programming Challenges", "http://s3.amazonaws.com/andmej/programming-challenges.pdf" %></li> <li><%= link_to "The Algorithm Design Manual", "http://www.cs.sysu.edu.cn/~lxm/DSA/textbook/Skiena.-.TheAlgorithmDesignManual.pdf" %></li>
</ul> <li><%= link_to "Programming Challenges", "http://s3.amazonaws.com/andmej/programming-challenges.pdf" %></li>
</ul>
<% end %>
</p> </p>

0 comments on commit fe8535c

Please sign in to comment.