diff options
| author | hukl <contact@smyck.org> | 2009-09-07 15:39:10 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-07 15:39:10 +0200 |
| commit | 78391adf0d7c241a6b1385621d98b6972d799d3a (patch) | |
| tree | 7d12a7ba1876b5b31caaf3d25a1831ff2997bfdc /app/views/content | |
| parent | fa2052b1ed8b51a950d18ed8c620a37dd54c23d3 (diff) | |
| parent | bfba5e1da6e890e22e8b7134a94807c5da757d94 (diff) | |
Merge branch '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 00000000..08f76242 --- /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 00000000..718a516a --- /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, params[: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 | ||
