summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/application.html.erb10
-rw-r--r--app/views/search/index.html.erb15
2 files changed, 25 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 69db939..0b32673 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -14,6 +14,16 @@
14 <div id="header"> 14 <div id="header">
15 <%= image_tag "header.png" %> 15 <%= image_tag "header.png" %>
16 </div> 16 </div>
17 <div id="search">
18 <table>
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>
17 <div id="left_column"> 27 <div id="left_column">
18 <%= main_menu %> 28 <%= main_menu %>
19 29
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb
new file mode 100644
index 0000000..28764bf
--- /dev/null
+++ b/app/views/search/index.html.erb
@@ -0,0 +1,15 @@
1<h2>Suche</h2>
2
3
4
5<% if params[:search_term] %>
6 <h3>Suchergebnisse für Suchbegriff: <%= params[:search_term] %></h3>
7<% end %>
8
9<%=
10 render(
11 :partial => 'custom/partials/article',
12 :collection => @results,
13 :as => :page
14 )
15%> \ No newline at end of file