diff options
| -rw-r--r-- | app/views/content/_headline_image.html.erb | 6 | ||||
| -rw-r--r-- | app/views/custom/partials/_article.html.erb | 2 | ||||
| -rw-r--r-- | app/views/search/_search_result.html.erb | 8 | ||||
| -rw-r--r-- | config/locales/de.yml | 21 | ||||
| -rw-r--r-- | config/locales/en.yml | 2 | ||||
| -rw-r--r-- | public/images/events.png | bin | 3584 -> 5290 bytes | |||
| -rw-r--r-- | public/stylesheets/ccc.css | 14 |
7 files changed, 33 insertions, 20 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 @@ | |||
| 3 | ("galleries/" + @page.node.unique_name) | 3 | ("galleries/" + @page.node.unique_name) |
| 4 | ) %> | 4 | ) %> |
| 5 | 5 | ||
| 6 | <% if 1 < @images.length %> | ||
| 7 | <div class="right"> | ||
| 8 | <%= "#{@images.length} #{t(:images)}" %> | ||
| 9 | </div> | ||
| 10 | <% end %> | ||
| 11 | |||
| 6 | <div class="shadowbox_images" style="display: none"> | 12 | <div class="shadowbox_images" style="display: none"> |
| 7 | <% @images.each do |image| %> | 13 | <% @images.each do |image| %> |
| 8 | <%= link_to "hallo", image.upload.url, :class => "shadowbox_image" %> | 14 | <%= link_to "hallo", image.upload.url, :class => "shadowbox_image" %> |
diff --git a/app/views/custom/partials/_article.html.erb b/app/views/custom/partials/_article.html.erb index 4f772ae..433c31c 100644 --- a/app/views/custom/partials/_article.html.erb +++ b/app/views/custom/partials/_article.html.erb | |||
| @@ -3,5 +3,5 @@ | |||
| 3 | <div class="author_and_date"> | 3 | <div class="author_and_date"> |
| 4 | <%= date_for_page page %>, <%= author_for_page page %> | 4 | <%= date_for_page page %>, <%= author_for_page page %> |
| 5 | </div> | 5 | </div> |
| 6 | <p class="excerpt"><%= page.abstract %></p> | 6 | <p class="excerpt"><%= page.abstract %> <%= link_to_path t(:more), page.node.unique_name %></p> |
| 7 | </div> \ No newline at end of file | 7 | </div> \ No newline at end of file |
diff --git a/app/views/search/_search_result.html.erb b/app/views/search/_search_result.html.erb index b480f89..14898a2 100644 --- a/app/views/search/_search_result.html.erb +++ b/app/views/search/_search_result.html.erb | |||
| @@ -1,4 +1,6 @@ | |||
| 1 | <% if node.head %> | ||
| 1 | <div class="article_partial"> | 2 | <div class="article_partial"> |
| 2 | <h2 class="headline"><%= link_to node.head.title, content_path(node.unique_path) %></h2> | 3 | <h2 class="headline"><%= link_to node.head.title, content_path(node.unique_path) %></h2> |
| 3 | <p class="excerpt"><%= node.head.abstract %></p> | 4 | <p class="excerpt"><%= node.head.abstract %></p> |
| 4 | </div> \ No newline at end of file | 5 | </div> |
| 6 | <% end %> \ No newline at end of file | ||
diff --git a/config/locales/de.yml b/config/locales/de.yml index 7196120..2663948 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | # German translations for Ruby on Rails | 1 | # German translations for Ruby on Rails |
| 2 | # by Clemens Kofler (clemens@railway.at) | 2 | # by Clemens Kofler (clemens@railway.at) |
| 3 | 3 | ||
| 4 | de: | 4 | de: |
| 5 | more: "mehr …" | ||
| 6 | images: Bilder | ||
| 5 | sponsors: Sponsoren | 7 | sponsors: Sponsoren |
| 6 | show_tag_headline: "Seiten mit dem Tag:" | 8 | show_tag_headline: "Seiten mit dem Tag:" |
| 7 | old_ccc_de: das alte ccc.de | 9 | old_ccc_de: das alte ccc.de |
| @@ -17,7 +19,7 @@ de: | |||
| 17 | month_names: [~, Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember] | 19 | month_names: [~, Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember] |
| 18 | abbr_month_names: [~, Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez] | 20 | abbr_month_names: [~, Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez] |
| 19 | order: [ :day, :month, :year ] | 21 | order: [ :day, :month, :year ] |
| 20 | 22 | ||
| 21 | time: | 23 | time: |
| 22 | formats: | 24 | formats: |
| 23 | default: "%A, %e. %B %Y, %H:%M Uhr" | 25 | default: "%A, %e. %B %Y, %H:%M Uhr" |
| @@ -27,7 +29,7 @@ de: | |||
| 27 | 29 | ||
| 28 | am: "vormittags" | 30 | am: "vormittags" |
| 29 | pm: "nachmittags" | 31 | pm: "nachmittags" |
| 30 | 32 | ||
| 31 | datetime: | 33 | datetime: |
| 32 | distance_in_words: | 34 | distance_in_words: |
| 33 | half_a_minute: 'eine halbe Minute' | 35 | half_a_minute: 'eine halbe Minute' |
| @@ -63,7 +65,7 @@ de: | |||
| 63 | over_x_years: | 65 | over_x_years: |
| 64 | one: 'mehr als 1 Jahr' | 66 | one: 'mehr als 1 Jahr' |
| 65 | other: 'mehr als {{count}} Jahre' | 67 | other: 'mehr als {{count}} Jahre' |
| 66 | 68 | ||
| 67 | number: | 69 | number: |
| 68 | format: | 70 | format: |
| 69 | precision: 2 | 71 | precision: 2 |
| @@ -73,9 +75,9 @@ de: | |||
| 73 | format: | 75 | format: |
| 74 | unit: '€' | 76 | unit: '€' |
| 75 | format: '%n%u' | 77 | format: '%n%u' |
| 76 | separator: | 78 | separator: |
| 77 | delimiter: | 79 | delimiter: |
| 78 | precision: | 80 | precision: |
| 79 | percentage: | 81 | percentage: |
| 80 | format: | 82 | format: |
| 81 | delimiter: "" | 83 | delimiter: "" |
| @@ -91,11 +93,11 @@ de: | |||
| 91 | array: | 93 | array: |
| 92 | sentence_connector: "und" | 94 | sentence_connector: "und" |
| 93 | skip_last_comma: true | 95 | skip_last_comma: true |
| 94 | 96 | ||
| 95 | activerecord: | 97 | activerecord: |
| 96 | errors: | 98 | errors: |
| 97 | template: | 99 | template: |
| 98 | header: | 100 | header: |
| 99 | one: 1 error prohibited this {{model}} from being saved | 101 | one: 1 error prohibited this {{model}} from being saved |
| 100 | other: "{{count}} errors prohibited this {{model}} from being saved" | 102 | other: "{{count}} errors prohibited this {{model}} from being saved" |
| 101 | body: "There were problems with the following fields:" | 103 | body: "There were problems with the following fields:" |
| @@ -120,4 +122,3 @@ de: | |||
| 120 | less_than_or_equal_to: "must be less than or equal to {{count}}" | 122 | less_than_or_equal_to: "must be less than or equal to {{count}}" |
| 121 | odd: "must be odd" | 123 | odd: "must be odd" |
| 122 | even: "must be even" | 124 | even: "must be even" |
| 123 | \ No newline at end of file | ||
diff --git a/config/locales/en.yml b/config/locales/en.yml index e68cead..81fa48e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. | 2 | # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. |
| 3 | 3 | ||
| 4 | en: | 4 | en: |
| 5 | more: "more …" | ||
| 6 | images: images | ||
| 5 | sponsors: sponsors | 7 | sponsors: sponsors |
| 6 | hello: "Hello world" | 8 | hello: "Hello world" |
| 7 | show_tag_headline: "Pages tagged with:" | 9 | show_tag_headline: "Pages tagged with:" |
diff --git a/public/images/events.png b/public/images/events.png index b7faae3..31b8dee 100644 --- a/public/images/events.png +++ b/public/images/events.png | |||
| Binary files differ | |||
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index 770c817..c58e3ae 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css | |||
| @@ -29,19 +29,23 @@ pre { | |||
| 29 | overflow: auto; | 29 | overflow: auto; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | .right { | ||
| 33 | text-align: right; | ||
| 34 | } | ||
| 35 | |||
| 32 | /*------------------links-------------------*/ | 36 | /*------------------links-------------------*/ |
| 33 | 37 | ||
| 34 | a { | 38 | a { |
| 35 | color: #535353; | 39 | color: #F8921E; |
| 36 | text-decoration: underline; | 40 | text-decoration: none; |
| 37 | } | 41 | } |
| 38 | 42 | ||
| 39 | a:visited { | 43 | a:visited { |
| 40 | color: #535353; | 44 | color: #5b8ca7; |
| 41 | } | 45 | } |
| 42 | 46 | ||
| 43 | a:hover { | 47 | a:hover { |
| 44 | color: #F8921E; | 48 | color: #5b8ca7; |
| 45 | } | 49 | } |
| 46 | 50 | ||
| 47 | /*------------------headlines-------------------*/ | 51 | /*------------------headlines-------------------*/ |
| @@ -106,13 +110,11 @@ div.main_navigation a.inactive:hover { | |||
| 106 | div.main_navigation a.active { | 110 | div.main_navigation a.active { |
| 107 | color: #000000; | 111 | color: #000000; |
| 108 | text-decoration: none; | 112 | text-decoration: none; |
| 109 | text-transform: lowercase; | ||
| 110 | font-size: 13px; | 113 | font-size: 13px; |
| 111 | } | 114 | } |
| 112 | 115 | ||
| 113 | div.main_navigation a.inactive { | 116 | div.main_navigation a.inactive { |
| 114 | color: #aeadad; | 117 | color: #aeadad; |
| 115 | text-transform: lowercase; | ||
| 116 | font-size: 13px; | 118 | font-size: 13px; |
| 117 | } | 119 | } |
| 118 | 120 | ||
