summaryrefslogtreecommitdiff
path: root/app/views/content
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/content')
-rw-r--r--app/views/content/_featured_articles.html.erb9
-rw-r--r--app/views/content/_search.html.erb8
2 files changed, 17 insertions, 0 deletions
diff --git a/app/views/content/_featured_articles.html.erb b/app/views/content/_featured_articles.html.erb
new file mode 100644
index 0000000..08f7624
--- /dev/null
+++ b/app/views/content/_featured_articles.html.erb
@@ -0,0 +1,9 @@
1<div id="frontpage_calendar">
2 <h2>Featured</h2>
3 <ul>
4 <% @featured_articles.each do |item| %>
5 <li><%= link_to_path item.title, item.path %></li>
6 <% end %>
7 </ul>
8</div>
9
diff --git a/app/views/content/_search.html.erb b/app/views/content/_search.html.erb
new file mode 100644
index 0000000..c6029e0
--- /dev/null
+++ b/app/views/content/_search.html.erb
@@ -0,0 +1,8 @@
1<table>
2<% form_tag search_path, :method => 'get' do %>
3 <tr>
4 <td><%= text_field_tag :search_term %></td>
5 <td style="padding-top: 2px"><%= image_submit_tag("search_button.png") %></td>
6 </tr>
7<% end %>
8</table> \ No newline at end of file