From 2cded5c6ae21877748199575e2b8525f033a837f Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 18 Feb 2012 21:16:22 +0100 Subject: handle missing node gracefully --- app/views/search/_search_result.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/search/_search_result.html.erb b/app/views/search/_search_result.html.erb index b480f89..a1c0274 100644 --- a/app/views/search/_search_result.html.erb +++ b/app/views/search/_search_result.html.erb @@ -1,4 +1,4 @@
-

<%= link_to node.head.title, content_path(node.unique_path) %>

+

<%= link_to ( node.head ? node.head.title : "No title" ), content_path(node.unique_path) %>

<%= node.head.abstract %>

\ No newline at end of file -- cgit v1.3 From 16ffafb4ebbc7118b50a09205666ffafda05ad6b Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 18 Feb 2012 21:30:49 +0100 Subject: graceful handling of weird search results --- app/views/search/_search_result.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/search/_search_result.html.erb b/app/views/search/_search_result.html.erb index a1c0274..14898a2 100644 --- a/app/views/search/_search_result.html.erb +++ b/app/views/search/_search_result.html.erb @@ -1,4 +1,6 @@ +<% if node.head %>
-

<%= link_to ( node.head ? node.head.title : "No title" ), content_path(node.unique_path) %>

-

<%= node.head.abstract %>

-
\ No newline at end of file +

<%= link_to node.head.title, content_path(node.unique_path) %>

+

<%= node.head.abstract %>

+ +<% end %> \ No newline at end of file -- cgit v1.3 From 99579f95be6deb2d2e4b7de1ba42f082971906b9 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 18 Feb 2012 22:02:12 +0100 Subject: show number of gallery images if more than one --- app/views/content/_headline_image.html.erb | 6 ++++++ config/locales/de.yml | 20 ++++++++++---------- config/locales/en.yml | 1 + public/stylesheets/ccc.css | 4 ++++ 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/app/views/content/_headline_image.html.erb b/app/views/content/_headline_image.html.erb index ac2e86a..71a4cb3 100644 --- a/app/views/content/_headline_image.html.erb +++ b/app/views/content/_headline_image.html.erb @@ -3,6 +3,12 @@ ("galleries/" + @page.node.unique_name) ) %> +<% if 1 < @images.length %> +
+ <%= "#{@images.length} #{t(:images)}" %> +
+<% end %> + \ No newline at end of file diff --git a/config/locales/de.yml b/config/locales/de.yml index 2724b11..2663948 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -2,6 +2,7 @@ # by Clemens Kofler (clemens@railway.at) de: + more: "mehr …" images: Bilder sponsors: Sponsoren show_tag_headline: "Seiten mit dem Tag:" diff --git a/config/locales/en.yml b/config/locales/en.yml index a565ffe..81fa48e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2,6 +2,7 @@ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. en: + more: "more …" images: images sponsors: sponsors hello: "Hello world" diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index a78d3eb..1066bde 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css @@ -36,16 +36,16 @@ pre { /*------------------links-------------------*/ a { - color: #535353; - text-decoration: underline; + color: #F8921E; + text-decoration: none; } a:visited { - color: #535353; + color: #5b8ca7; } a:hover { - color: #F8921E; + color: #5b8ca7; } /*------------------headlines-------------------*/ -- cgit v1.3 From 496fa47445744a0827390738a9550cb4192a7b76 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 19 Feb 2012 16:43:10 +0100 Subject: new events icon --- public/images/events.png | Bin 3584 -> 5290 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/public/images/events.png b/public/images/events.png index b7faae3..31b8dee 100644 Binary files a/public/images/events.png and b/public/images/events.png differ -- cgit v1.3 From dfbaadf0210b02a8bb54380c2c50302413dcf6d6 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 25 Mar 2012 18:36:31 +0200 Subject: remove lowercasing of menu items --- public/stylesheets/ccc.css | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index 1066bde..c58e3ae 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css @@ -110,13 +110,11 @@ div.main_navigation a.inactive:hover { div.main_navigation a.active { color: #000000; text-decoration: none; - text-transform: lowercase; font-size: 13px; } div.main_navigation a.inactive { color: #aeadad; - text-transform: lowercase; font-size: 13px; } -- cgit v1.3