diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/content/_featured_articles.html.erb | 9 | ||||
| -rw-r--r-- | app/views/content/_search.html.erb | 8 | ||||
| -rw-r--r-- | app/views/layouts/application.html.erb | 12 |
3 files changed, 21 insertions, 8 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 | ||
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 0b32673..7a5222d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb | |||
| @@ -15,18 +15,13 @@ | |||
| 15 | <%= image_tag "header.png" %> | 15 | <%= image_tag "header.png" %> |
| 16 | </div> | 16 | </div> |
| 17 | <div id="search"> | 17 | <div id="search"> |
| 18 | <table> | 18 | <%= render :partial => "content/search" %> |
| 19 | <% form_tag search_path, :method => 'get' do %> | ||
| 20 | <tr> | ||
| 21 | <td><%= text_field_tag :search_term %></td> | ||
| 22 | <td style="padding-top: 2px"><%= image_submit_tag("search_button.png") %></td> | ||
| 23 | </tr> | ||
| 24 | <% end %> | ||
| 25 | </table> | ||
| 26 | </div> | 19 | </div> |
| 27 | <div id="left_column"> | 20 | <div id="left_column"> |
| 28 | <%= main_menu %> | 21 | <%= main_menu %> |
| 29 | 22 | ||
| 23 | <%= language_selector %> | ||
| 24 | |||
| 30 | <%= calendar %> | 25 | <%= calendar %> |
| 31 | </div> | 26 | </div> |
| 32 | <div id="center_column"> | 27 | <div id="center_column"> |
| @@ -34,6 +29,7 @@ | |||
| 34 | </div> | 29 | </div> |
| 35 | <div id="right_column"> | 30 | <div id="right_column"> |
| 36 | <%= tags %> | 31 | <%= tags %> |
| 32 | <%= featured_articles %> | ||
| 37 | </div> | 33 | </div> |
| 38 | </div> | 34 | </div> |
| 39 | 35 | ||
