diff options
Diffstat (limited to 'app/views/content')
| -rw-r--r-- | app/views/content/_featured_articles.html.erb | 47 | ||||
| -rw-r--r-- | app/views/content/_main_navigation.html.erb | 2 | ||||
| -rw-r--r-- | app/views/content/_search.html.erb | 11 | ||||
| -rw-r--r-- | app/views/content/_tags.html.erb | 6 |
4 files changed, 44 insertions, 22 deletions
diff --git a/app/views/content/_featured_articles.html.erb b/app/views/content/_featured_articles.html.erb index 75e2e1d..6717c51 100644 --- a/app/views/content/_featured_articles.html.erb +++ b/app/views/content/_featured_articles.html.erb | |||
| @@ -1,31 +1,56 @@ | |||
| 1 | <div id="featured_articles"> | 1 | <div id="featured_articles"> |
| 2 | <h2>Featured</h2> | 2 | <h2>Featured</h2> |
| 3 | |||
| 4 | <!-- %= link_to( | ||
| 5 | image_tag( '34c3-tuwat.1e4e25c.png' ), | ||
| 6 | "https://events.ccc.de/congress/2017/wiki/Main_Page", | ||
| 7 | :id => "34C3_icon", | ||
| 8 | :size => "155x90", | ||
| 9 | :title => "Chaos Communication Congress 2017" | ||
| 10 | )% --> | ||
| 11 | |||
| 3 | <%= link_to( | 12 | <%= link_to( |
| 4 | image_tag( 'chaosradio.png' ), | 13 | '<img src="/images/chaosradio.png" alt="Chaosradio">'.html_safe, |
| 5 | "http://chaosradio.ccc.de/", | 14 | "https://chaosradio.ccc.de/", |
| 6 | :id => "chaosradio_icon", | 15 | :id => "chaosradio_icon", |
| 7 | :title => "Chaosradio" | 16 | :title => "Chaosradio" |
| 8 | )%> | 17 | )%> |
| 9 | 18 | ||
| 10 | <%= link_to( | 19 | <%= link_to( |
| 11 | image_tag( 'ds.png' ), | 20 | '<img src="/images/media-ccc-de-banner.svg" width="155" height="45" alt="Media Dot CCC Dot de">'.html_safe, |
| 12 | "http://ds.ccc.de/", | 21 | "https://media.ccc.de", |
| 22 | :id => "media_ccc_de_icon", | ||
| 23 | :title => "Media Dot CCC Dot de" | ||
| 24 | )%> | ||
| 25 | |||
| 26 | <%= link_to( | ||
| 27 | '<img src="/images/ds.png" alt="Datenschleuder">'.html_safe, | ||
| 28 | "https://ds.ccc.de/", | ||
| 13 | :id => "ds_icon", | 29 | :id => "ds_icon", |
| 14 | :title => "Datenschleuder" | 30 | :title => "Datenschleuder" |
| 15 | )%> | 31 | )%> |
| 16 | 32 | ||
| 17 | <%= link_to( | 33 | <%= link_to( |
| 18 | image_tag( 'events.png' ), | 34 | '<img src="/images/events.png" alt="Events-Blog">'.html_safe, |
| 19 | "http://events.ccc.de/", | 35 | "https://events.ccc.de/", |
| 20 | :id => "events_icon", | 36 | :id => "events_icon", |
| 21 | :title => "Events Blog" | 37 | :title => "Events-Blog" |
| 22 | )%> | 38 | )%> |
| 23 | 39 | ||
| 24 | <%= link_to( | 40 | <%= link_to( |
| 25 | image_tag( 'twitter.png' ), | 41 | '<img src="/images/Fediverse.svg" width="64" height="64" alt="Fediverse">'.html_safe, |
| 26 | "https://twitter.com/chaosupdates", | 42 | "https://social.bau-ha.us/@ccc", |
| 27 | :id => "twitter_icon", | 43 | :rel => 'me', |
| 28 | :title => "Twitter" | 44 | :id => "fediverse_icon", |
| 45 | :title => "Fediverse" | ||
| 29 | )%> | 46 | )%> |
| 47 | |||
| 48 | <%= link_to( | ||
| 49 | '<img src="/images/Bluesky_Logo.svg" width="64" height="64" alt="bsky">'.html_safe, | ||
| 50 | "https://bsky.app/profile/ccc.de", | ||
| 51 | :id => "bluesky_icon", | ||
| 52 | :title => "bsky" | ||
| 53 | )%> | ||
| 54 | |||
| 30 | </div> | 55 | </div> |
| 31 | 56 | ||
diff --git a/app/views/content/_main_navigation.html.erb b/app/views/content/_main_navigation.html.erb index 67d4ecc..2fe8b77 100644 --- a/app/views/content/_main_navigation.html.erb +++ b/app/views/content/_main_navigation.html.erb | |||
| @@ -4,4 +4,4 @@ | |||
| 4 | <li><%= link_to_path item.title, item.path %></li> | 4 | <li><%= link_to_path item.title, item.path %></li> |
| 5 | <% end %> | 5 | <% end %> |
| 6 | </ul> | 6 | </ul> |
| 7 | </div> \ No newline at end of file | 7 | </div> |
diff --git a/app/views/content/_search.html.erb b/app/views/content/_search.html.erb index 9f61042..aa91424 100644 --- a/app/views/content/_search.html.erb +++ b/app/views/content/_search.html.erb | |||
| @@ -1,8 +1,3 @@ | |||
| 1 | <% form_tag search_path, :method => 'get' do %> | 1 | <%= form_tag search_path, :method => 'get' do %> |
| 2 | <table> | 2 | <div><%= text_field_tag :search_term, params[:search_term], :placeholder => 'suchen', :type => 'search' %></div> |
| 3 | <tr> | 3 | <% end %> |
| 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 | </table> | ||
| 8 | <% end %> \ No newline at end of file | ||
diff --git a/app/views/content/_tags.html.erb b/app/views/content/_tags.html.erb index d33bc10..f0e7210 100644 --- a/app/views/content/_tags.html.erb +++ b/app/views/content/_tags.html.erb | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | <% unless @page.nil? || @page.tags.empty? %> | ||
| 1 | <div id="tags"> | 2 | <div id="tags"> |
| 2 | <h2>Tags</h2> | 3 | <h2>Tags</h2> |
| 3 | <ul class="teasertext"> | 4 | <ul class="teasertext"> |
| 4 | <% @page.tags.each do |tag| %> | 5 | <% @page.tags.each do |tag| %> |
| 5 | <li><%= link_to tag.name, tag_path(:id => tag.name) %></li> | 6 | <li><%= link_to tag.name, tag_path(tag.name) %></li> |
| 6 | <% end %> | 7 | <% end %> |
| 7 | </ul> | 8 | </ul> |
| 8 | </div> \ No newline at end of file | 9 | </div> |
| 10 | <% end %> | ||
