diff options
| author | hukl <contact@smyck.org> | 2009-09-07 14:15:24 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-07 14:15:24 +0200 |
| commit | 5e0488e021bee2002d70fa05b79bb85490af020b (patch) | |
| tree | 2e050fe051ff674434a737daaf071d0355959496 /app/views/content | |
| parent | 8f2dc36616548650000308ebc8b1f9e2947c0ef9 (diff) | |
enabling featured articles
Diffstat (limited to 'app/views/content')
| -rw-r--r-- | app/views/content/_featured_articles.html.erb | 9 | ||||
| -rw-r--r-- | app/views/content/_search.html.erb | 8 |
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 | ||
