2010-01-30 04:33:54 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2009-11-23 02:34:17 +00:00
|
|
|
<head>
|
2010-01-30 05:50:07 +00:00
|
|
|
<%= render 'head_common' %>
|
2010-01-30 04:33:54 +00:00
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script>
|
|
|
|
<script src="/js/articles.js" type="text/javascript" charset="utf-8"></script>
|
2009-11-23 02:34:17 +00:00
|
|
|
</head>
|
2010-01-30 04:33:54 +00:00
|
|
|
<body class="articles">
|
2009-11-23 02:34:17 +00:00
|
|
|
<%= render 'header' %>
|
2010-01-30 04:33:54 +00:00
|
|
|
<div id="content">
|
2010-01-30 06:09:05 +00:00
|
|
|
<h1>Archives</h1>
|
|
|
|
|
2010-01-30 06:42:29 +00:00
|
|
|
<%
|
|
|
|
menu = [
|
|
|
|
['All', sorted_articles.size],
|
|
|
|
['Technical', technical_articles.size],
|
|
|
|
['Personal', personal_articles.size],
|
|
|
|
]
|
|
|
|
%>
|
2010-02-01 01:58:10 +00:00
|
|
|
<ul class="inline menu">
|
2010-01-30 06:42:29 +00:00
|
|
|
<% menu.each do |menu_item|
|
|
|
|
label, count = menu_item
|
|
|
|
path = (label != "All" ? '/' + label.downcase : '') + "/articles/"
|
|
|
|
%>
|
|
|
|
<li><a href="<%= path %>"<%= %Q{class="active"} if @item.identifier == path %>><%= label %></a> (<%= count %>)</li>
|
|
|
|
<% end %>
|
2010-01-30 06:09:05 +00:00
|
|
|
</ul>
|
|
|
|
|
2009-11-23 02:34:17 +00:00
|
|
|
<ul class="articles">
|
2010-01-30 05:50:07 +00:00
|
|
|
<%= yield %>
|
2009-11-23 02:34:17 +00:00
|
|
|
</ul>
|
2010-01-30 06:09:05 +00:00
|
|
|
|
2009-11-23 02:34:17 +00:00
|
|
|
<div class="pagination">
|
2010-01-30 05:50:07 +00:00
|
|
|
<a href="#page-0" class="older">« Older</a>
|
2009-11-23 02:34:17 +00:00
|
|
|
|
|
2010-01-30 05:50:07 +00:00
|
|
|
<a href="#page-2" class="newer">Newer »</a>
|
2009-11-23 02:34:17 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%= render 'footer' %>
|
|
|
|
</body>
|
|
|
|
</html>
|