infopark_rails_connector 6.8.0.beta.200.621.4c8e1b0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. data/README +59 -0
  2. data/app/assets/images/admin/minus.gif +0 -0
  3. data/app/assets/images/bg80.png +0 -0
  4. data/app/assets/images/edit.png +0 -0
  5. data/app/assets/images/icons/mm_generic.png +0 -0
  6. data/app/assets/images/icons/mm_menu.png +0 -0
  7. data/app/assets/images/ratings/star.gif +0 -0
  8. data/app/assets/images/time_machine/calendar-menuarrow.gif +0 -0
  9. data/app/assets/images/time_machine/calendar_bg.png +0 -0
  10. data/app/assets/images/time_machine/icon.png +0 -0
  11. data/app/assets/images/time_machine/slider_bg.png +0 -0
  12. data/app/assets/images/time_machine/slider_handle.png +0 -0
  13. data/app/assets/images/time_machine/timemachine_bg.png +0 -0
  14. data/app/assets/javascripts/comments.js +29 -0
  15. data/app/assets/javascripts/editmarker.js +240 -0
  16. data/app/assets/javascripts/infopark_rails_connector.js.erb +3 -0
  17. data/app/assets/javascripts/initializer.js +9 -0
  18. data/app/assets/javascripts/ratings.js +26 -0
  19. data/app/assets/javascripts/time_machine/calendar-setup.js +200 -0
  20. data/app/assets/javascripts/time_machine/calendar.js +1806 -0
  21. data/app/assets/javascripts/time_machine/lang/calendar-de.js +127 -0
  22. data/app/assets/javascripts/time_machine/lang/calendar-en.js +127 -0
  23. data/app/assets/javascripts/time_machine/lang/calendar-es.js +129 -0
  24. data/app/assets/javascripts/time_machine/lang/calendar-fr.js +125 -0
  25. data/app/assets/javascripts/time_machine/lang/calendar-it.js +124 -0
  26. data/app/assets/javascripts/time_machine/slider.js +278 -0
  27. data/app/assets/javascripts/time_machine.js +8 -0
  28. data/app/assets/stylesheets/editmarker.css +70 -0
  29. data/app/assets/stylesheets/infopark_rails_connector.css.erb +4 -0
  30. data/app/assets/stylesheets/ratings.css +97 -0
  31. data/app/assets/stylesheets/time_machine/time_machine.css +292 -0
  32. data/app/assets/stylesheets/time_machine.css +6 -0
  33. data/app/controllers/cms_controller.rb +6 -0
  34. data/app/controllers/comments_controller.rb +6 -0
  35. data/app/controllers/crm_form_controller.rb +2 -0
  36. data/app/controllers/pdf_controller.rb +6 -0
  37. data/app/controllers/rails_connector/default_cms_controller.rb +40 -0
  38. data/app/controllers/rails_connector/default_comments_controller.rb +71 -0
  39. data/app/controllers/rails_connector/default_crm_form_controller.rb +167 -0
  40. data/app/controllers/rails_connector/default_pdf_controller.rb +136 -0
  41. data/app/controllers/rails_connector/default_ratings_controller.rb +84 -0
  42. data/app/controllers/rails_connector/default_rss_controller.rb +29 -0
  43. data/app/controllers/rails_connector/default_search_controller.rb +60 -0
  44. data/app/controllers/rails_connector/default_user_controller.rb +267 -0
  45. data/app/controllers/rails_connector/pdf_external_controller.rb +54 -0
  46. data/app/controllers/rails_connector/time_machine_controller.rb +48 -0
  47. data/app/controllers/ratings_controller.rb +6 -0
  48. data/app/controllers/rss_controller.rb +6 -0
  49. data/app/controllers/search_controller.rb +2 -0
  50. data/app/controllers/seo_sitemap_controller.rb +12 -0
  51. data/app/controllers/user_controller.rb +2 -0
  52. data/app/helpers/cms_helper.rb +6 -0
  53. data/app/helpers/cms_routing_helper.rb +6 -0
  54. data/app/helpers/crm_form_helper.rb +3 -0
  55. data/app/helpers/rails_connector/cms_asset_helper.rb +51 -0
  56. data/app/helpers/rails_connector/default_cms_helper.rb +27 -0
  57. data/app/helpers/rails_connector/default_cms_routing_helper.rb +93 -0
  58. data/app/helpers/rails_connector/default_crm_form_helper.rb +58 -0
  59. data/app/helpers/rails_connector/default_ratings_helper.rb +38 -0
  60. data/app/helpers/rails_connector/default_user_helper.rb +90 -0
  61. data/app/helpers/rails_connector/display_helper.rb +117 -0
  62. data/app/helpers/rails_connector/error_messages_helper.rb +23 -0
  63. data/app/helpers/rails_connector/layout_helper.rb +30 -0
  64. data/app/helpers/rails_connector/link_helper.rb +88 -0
  65. data/app/helpers/rails_connector/mandatory_label_helper.rb +10 -0
  66. data/app/helpers/rails_connector/marker_helper.rb +363 -0
  67. data/app/helpers/rails_connector/menu_helper.rb +72 -0
  68. data/app/helpers/rails_connector/micronav_helper.rb +107 -0
  69. data/app/helpers/rails_connector/seo_helper.rb +44 -0
  70. data/app/helpers/rails_connector/table_of_contents_helper.rb +20 -0
  71. data/app/helpers/rails_connector/time_machine_helper.rb +24 -0
  72. data/app/helpers/rails_connector/tracking_helper.rb +32 -0
  73. data/app/helpers/ratings_helper.rb +4 -0
  74. data/app/helpers/user_helper.rb +3 -0
  75. data/app/mailers/confirmation_mailer.rb +13 -0
  76. data/app/models/crm_form.rb +2 -0
  77. data/app/models/named_link.rb +2 -0
  78. data/app/models/obj.rb +9 -0
  79. data/app/models/rails_connector/default_comment.rb +28 -0
  80. data/app/models/rails_connector/default_rating.rb +20 -0
  81. data/app/models/rails_connector/link_list.rb +30 -0
  82. data/app/views/cms/_comments.html.erb +44 -0
  83. data/app/views/cms/_index.html.erb +7 -0
  84. data/app/views/cms/_rating.html.erb +31 -0
  85. data/app/views/cms/index.html.erb +3 -0
  86. data/app/views/comments/_comment.html.erb +28 -0
  87. data/app/views/confirmation_mailer/register_confirmation.erb +5 -0
  88. data/app/views/confirmation_mailer/reset_password.erb +5 -0
  89. data/app/views/crm_form/_flash_messages.html.erb +11 -0
  90. data/app/views/crm_form/_form.html.erb +17 -0
  91. data/app/views/crm_form/confirmation.html.erb +3 -0
  92. data/app/views/crm_form/index.html.erb +5 -0
  93. data/app/views/crm_form/not_logged_in.html.erb +1 -0
  94. data/app/views/errors/403_forbidden.html.erb +3 -0
  95. data/app/views/errors/410_gone.html.erb +7 -0
  96. data/app/views/layouts/rails_connector/time_machine.html.erb +12 -0
  97. data/app/views/pdf/index.html.erb +7 -0
  98. data/app/views/pdf/index.xsl +1240 -0
  99. data/app/views/rails_connector/time_machine/index.html.erb +88 -0
  100. data/app/views/rss/_item.rss.builder +11 -0
  101. data/app/views/rss/index.rss.builder +11 -0
  102. data/app/views/search/_hit.html.erb +12 -0
  103. data/app/views/search/_hits.html.erb +11 -0
  104. data/app/views/search/_mini_panel.html.erb +4 -0
  105. data/app/views/search/_pagination.html.erb +5 -0
  106. data/app/views/search/_panel.html.erb +4 -0
  107. data/app/views/search/search.html.erb +12 -0
  108. data/app/views/seo_sitemap/show.xml.builder +16 -0
  109. data/app/views/user/_flash_messages.html.erb +11 -0
  110. data/app/views/user/edit.html.erb +6 -0
  111. data/app/views/user/edit_password.html.erb +11 -0
  112. data/app/views/user/forgot_password.html.erb +7 -0
  113. data/app/views/user/login.html.erb +15 -0
  114. data/app/views/user/new.html.erb +11 -0
  115. data/app/views/user/profile.html.erb +8 -0
  116. data/app/views/user/register_pending.html.erb +1 -0
  117. data/app/views/user/set_password.html.erb +14 -0
  118. data/config/cms_routes.rb +13 -0
  119. data/config/locales/de.rails_connector.controllers.yml +30 -0
  120. data/config/locales/de.rails_connector.errors.yml +11 -0
  121. data/config/locales/de.rails_connector.helpers.yml +9 -0
  122. data/config/locales/de.rails_connector.lib.yml +6 -0
  123. data/config/locales/de.rails_connector.models.yml +8 -0
  124. data/config/locales/de.rails_connector.views.yml +87 -0
  125. data/config/locales/en.rails_connector.controllers.yml +30 -0
  126. data/config/locales/en.rails_connector.errors.yml +10 -0
  127. data/config/locales/en.rails_connector.helpers.yml +9 -0
  128. data/config/locales/en.rails_connector.lib.yml +6 -0
  129. data/config/locales/en.rails_connector.models.yml +8 -0
  130. data/config/locales/en.rails_connector.views.yml +87 -0
  131. data/config/routes.rb +37 -0
  132. data/lib/generators/rails_connector/comments/comments_generator.rb +21 -0
  133. data/lib/generators/rails_connector/comments/templates/migration.rb +17 -0
  134. data/lib/generators/rails_connector/install/install_generator.rb +38 -0
  135. data/lib/generators/rails_connector/install/templates/initializers/rails_connector.rb +58 -0
  136. data/lib/generators/rails_connector/install/templates/local/configuration.rb +2 -0
  137. data/lib/generators/rails_connector/install/templates/obj_extensions.rb +25 -0
  138. data/lib/generators/rails_connector/ratings/ratings_generator.rb +21 -0
  139. data/lib/generators/rails_connector/ratings/templates/migration.rb +15 -0
  140. data/lib/infopark_rails_connector.rb +31 -0
  141. data/lib/obj_extensions.rb +6 -0
  142. data/lib/rails_connector/authenticable.rb +30 -0
  143. data/lib/rails_connector/cms_accessible.rb +114 -0
  144. data/lib/rails_connector/cms_dispatch_controller.rb +47 -0
  145. data/lib/rails_connector/cms_env.rb +55 -0
  146. data/lib/rails_connector/cms_test_request.rb +23 -0
  147. data/lib/rails_connector/commentable.rb +23 -0
  148. data/lib/rails_connector/configuration/google_analytics.rb +29 -0
  149. data/lib/rails_connector/configuration/pdf_generator.rb +15 -0
  150. data/lib/rails_connector/configuration/rss.rb +46 -0
  151. data/lib/rails_connector/configuration.rb +235 -0
  152. data/lib/rails_connector/core_extensions/time.rb +18 -0
  153. data/lib/rails_connector/core_extensions.rb +1 -0
  154. data/lib/rails_connector/crm.rb +282 -0
  155. data/lib/rails_connector/engine.rb +78 -0
  156. data/lib/rails_connector/fop.rb +18 -0
  157. data/lib/rails_connector/fop_on_rails/document/dom_tree.rb +42 -0
  158. data/lib/rails_connector/fop_on_rails/document/images.rb +34 -0
  159. data/lib/rails_connector/fop_on_rails/document/tables.rb +67 -0
  160. data/lib/rails_connector/fop_on_rails/document.rb +25 -0
  161. data/lib/rails_connector/fop_on_rails.rb +92 -0
  162. data/lib/rails_connector/googlebot_checker.rb +47 -0
  163. data/lib/rails_connector/html_string.rb +19 -0
  164. data/lib/rails_connector/infopark_base.rb +2 -0
  165. data/lib/rails_connector/link_resolvable.rb +9 -0
  166. data/lib/rails_connector/liquid_support/action_marker.rb +69 -0
  167. data/lib/rails_connector/liquid_support/field_value_drop.rb +22 -0
  168. data/lib/rails_connector/liquid_support/general_helper_tag.rb +44 -0
  169. data/lib/rails_connector/liquid_support/link_drop.rb +22 -0
  170. data/lib/rails_connector/liquid_support/liquid_template_handler.rb +162 -0
  171. data/lib/rails_connector/liquid_support/named_object_drop.rb +14 -0
  172. data/lib/rails_connector/liquid_support/obj_drop.rb +43 -0
  173. data/lib/rails_connector/liquid_support/obj_filters.rb +77 -0
  174. data/lib/rails_connector/liquid_support.rb +23 -0
  175. data/lib/rails_connector/markdown_string.rb +19 -0
  176. data/lib/rails_connector/rateable.rb +57 -0
  177. data/lib/rails_connector/seo.rb +52 -0
  178. data/lib/rails_connector/ses.rb +72 -0
  179. data/lib/rails_connector/string_tagging.rb +29 -0
  180. data/lib/rails_connector/syndicateable.rb +11 -0
  181. data/lib/search_request.rb +2 -0
  182. data/lib/tasks/check.rake +25 -0
  183. data/lib/tasks/cms_license_check.rake +17 -0
  184. metadata +489 -0
@@ -0,0 +1,88 @@
1
+ <% content_for :head do %>
2
+ <%= stylesheet_link_tag :time_machine %>
3
+ <%= javascript_include_tag :time_machine %>
4
+ <%= javascript_tag "
5
+ var guiWindow = opener.parent;
6
+ var myCalendar;
7
+ var mySlider;
8
+ var today = new Date();
9
+ today.setMilliseconds(0);
10
+ today.setSeconds(0);
11
+ today.setMinutes(0);
12
+ today.setHours(0);" %>
13
+ </head>
14
+
15
+ <% end %>
16
+
17
+ <div id='time-machine'>
18
+ <div id='calendar'></div>
19
+ <%= javascript_tag %Q@
20
+ function updatePreview(cal) {
21
+ var y = cal.date.getFullYear();
22
+ var m = cal.date.getMonth() + 1;
23
+ var d = cal.date.getDate();
24
+ if (m < 10) {
25
+ m = "0" + m;
26
+ }
27
+ if (d < 10) {
28
+ d = "0" + d;
29
+ }
30
+ url = "#{time_machine_url(:action => 'set_preview_time')}?preview_time=" + y + m + d + "000000";
31
+ guiWindow.nps_browser_frame.sendRequest(url);
32
+ }
33
+
34
+ function daysFromToday(date) {
35
+ return Number((date.getTime() - today.getTime()) / 86400000).toFixed(0);
36
+ }
37
+
38
+ function dateChanged(cal) {
39
+ updatePreview(cal);
40
+ mySlider.setValue(daysFromToday(cal.date));
41
+ };
42
+
43
+ myCalendar = Calendar.setup({
44
+ flat: "calendar",
45
+ flatCallback: dateChanged,
46
+ date: new Date(#{@preview_time.year}, #{@preview_time.month - 1}, #{@preview_time.day}),
47
+ dateStatusFunc: function(date) {
48
+ return (date.getTime() < today.getTime() || daysFromToday(date) > 60);
49
+ }
50
+ });@ %>
51
+
52
+ <div id="slider">
53
+ <div id="track">
54
+ <div id="handle"></div>
55
+ </div>
56
+ <div id="display"></div>
57
+ </div>
58
+
59
+ <p>
60
+ <%= javascript_tag %Q|
61
+ function displayValue(v)
62
+ {
63
+ if (v == 0) {
64
+ return 'Heute';
65
+ } else if (v == 1) {
66
+ return 'Morgen';
67
+ } else {
68
+ return v + ' Tage in der Zukunft';
69
+ }
70
+ }
71
+
72
+ mySlider = new Control.Slider('handle','track', {
73
+ range: $R(0,60),
74
+ values: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
75
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
76
+ 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60],
77
+ onSlide: function(v) {
78
+ $('display').innerHTML = displayValue(v);
79
+ },
80
+ onChange: function(v) {
81
+ $('display').innerHTML = displayValue(v);
82
+ myCalendar.setDate(new Date(today.getTime() + v * 86400000));
83
+ updatePreview(myCalendar);
84
+ }
85
+ });
86
+ mySlider.setValue(daysFromToday(myCalendar.date));| %>
87
+ </p>
88
+ </div>
@@ -0,0 +1,11 @@
1
+ xml.item do
2
+ xml.title display_value(item.title)
3
+ xml.description display_value(item.rss_description)
4
+ xml.pubDate item.valid_from.rfc2822 if item.valid_from
5
+ url = cms_url(item)
6
+ if RailsConnector::Configuration.enabled?(:google_analytics)
7
+ url << '#utm_medium=rss&utm_source=rss&utm_campaign=' << cms_path(item)
8
+ end
9
+ xml.link url
10
+ xml.guid url
11
+ end
@@ -0,0 +1,11 @@
1
+ xml.instruct! :xml, :version => '1.0'
2
+
3
+ xml.rss :version => '2.0' do
4
+ xml.channel do
5
+ xml.title display_value(@obj.title)
6
+ xml.link cms_url(@obj)
7
+ xml.description strip_tags(display_value(@obj.rss_description))
8
+
9
+ xml << (render :partial => 'item.rss', :collection => table_of_contents(@obj)).to_s
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ <% if hit.obj -%>
2
+ <div class='searchHit'>
3
+ <h3><a href="<%= cms_path(hit.obj) %>">
4
+ <%= display_field hit.obj, :title, :marker => false %>
5
+ </a></h3>
6
+ <p class = 'hitDetails'>
7
+ <span class="hitScore"><%= (hit.score * 100).to_i %>%</span>,
8
+ <span class="hitExtension"><%= display_value hit.obj.file_extension %></span>,
9
+ <span class="hitLastChanged"><%= display_value hit.obj.last_changed %></span>
10
+ </p>
11
+ </div>
12
+ <% end -%>
@@ -0,0 +1,11 @@
1
+ <% if @hits %>
2
+ <div id="seachResults">
3
+ <p id="searchSummary">
4
+ <%= @hits.total_entries %> <%=t :"rails_connector.views.search.hits" %>
5
+ </p>
6
+ <div id="searchHits">
7
+ <%= render :partial => 'hit', :collection => @hits %>
8
+ </div>
9
+ </div>
10
+ <%= render :partial => 'pagination' %>
11
+ <% end %>
@@ -0,0 +1,4 @@
1
+ <%= form_tag(search_url, {:method => 'get', :id => 'searchMiniForm'}) do %>
2
+ <%= link_to 'Suche', search_path %>
3
+ <input type="text" name="q" size="13" value="<%=h @query %>" />
4
+ <% end %>
@@ -0,0 +1,5 @@
1
+ <% if @hits.total_entries > @hits.per_page %>
2
+ <div id="searchPagination">
3
+ <%= will_paginate @hits, :previous_label => '<', :next_label => '>' %>
4
+ </div>
5
+ <% end %>
@@ -0,0 +1,4 @@
1
+ <%= form_tag(search_url, {:method => 'get', :id => 'searchForm'}) do %>
2
+ <input type="text" name="q" size="30" value="<%=h @query %>" />
3
+ <%= submit_tag "OK" %>
4
+ <% end %>
@@ -0,0 +1,12 @@
1
+ <%= render :partial => 'panel' %>
2
+
3
+ <% if flash[:errors] %>
4
+ <div id='searchErrors'>
5
+ <h2><%= t(:"rails_connector.views.search.search_failed") %></h2>
6
+ <p class="errors">
7
+ <%= flash[:errors] %>
8
+ </p>
9
+ </div>
10
+ <% end %>
11
+
12
+ <%= render :partial => 'hits' %>
@@ -0,0 +1,16 @@
1
+ base_url = request.protocol + request.host_with_port
2
+ xml.instruct!
3
+ xml.urlset('xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9') {
4
+ for obj in @objects do
5
+ prio = obj.root? ? 1.0 : (1.0 - (obj.path.split('/').length - 1) * 0.1)
6
+ prio *= (obj.file_extension == 'pdf' ? 1.2 : 0.5) if obj.binary?
7
+ if (prio >= 0.1)
8
+ prio = 1.0 if prio > 1.0
9
+ xml.url {
10
+ xml.loc base_url, cms_path(obj)
11
+ xml.lastmod(obj.last_changed.blank? ? nil : obj.last_changed.strftime('%Y-%m-%d'))
12
+ xml.priority((prio * 100).round / 100.0).to_s
13
+ }
14
+ end
15
+ end
16
+ }
@@ -0,0 +1,11 @@
1
+ <% if flash[:error] %>
2
+ <div class="error">
3
+ <p><%= flash[:error] %></p>
4
+ <%= error_messages(@user, @inquiry) %>
5
+ </div>
6
+ <% end %>
7
+ <% if flash[:notice] %>
8
+ <div class="notice">
9
+ <p><%= flash[:notice] %></p>
10
+ </div>
11
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <%= render :partial => 'flash_messages' %>
2
+
3
+ <%= form_for @user, :as => :user, :url => { :controller => 'user', :action => "edit" } do |f| -%>
4
+ <%= profile_fields_for(f, UserController.editable_attributes_on_edit) %>
5
+ <%= f.submit t('rails_connector.views.user.edit_button') %>
6
+ <% end -%>
@@ -0,0 +1,11 @@
1
+ <%= render :partial => 'flash_messages' %>
2
+
3
+ <%= form_for :user, :url => { :controller => 'user', :action => "edit_password" } do |f| -%>
4
+ <div class="label"><%= f.label :old_password, t('rails_connector.views.user.old_password') %></div>
5
+ <div class="field"><%= f.password_field :old_password %></div>
6
+ <div class="label"><%= f.label :new_password, t('rails_connector.views.user.new_password') %></div>
7
+ <div class="field"><%= f.password_field :new_password %></div>
8
+ <div class="label"><%= f.label :new_password_confirm, t('rails_connector.views.user.new_password_confirm') %></div>
9
+ <div class="field"><%= f.password_field :new_password_confirm %></div>
10
+ <%= f.submit t('rails_connector.views.user.change_password_button') %>
11
+ <% end -%>
@@ -0,0 +1,7 @@
1
+ <%= render :partial => 'flash_messages' %>
2
+
3
+ <%= form_for :user, :url => { :controller => 'user', :action => "forgot_password" } do |f| -%>
4
+ <div class="label"><%= f.label :login, t('rails_connector.views.user.login') %></div>
5
+ <div class="field"><%= f.text_field :login %></div>
6
+ <%= f.submit t('rails_connector.views.user.forgot_password_button') %>
7
+ <% end -%>
@@ -0,0 +1,15 @@
1
+ <%= render :partial => 'flash_messages' %>
2
+
3
+ <%= form_for :user, :url => { :controller => 'user', :action => "login" } do |f| -%>
4
+ <%= hidden_field_tag :return_to, params[:return_to] %>
5
+ <div class="label"><%= f.label :login, t('rails_connector.views.user.login') %></div>
6
+ <div class="field"><%= f.text_field :login %></div>
7
+ <div class="label"><%= f.label :password, t('rails_connector.views.user.password') %></div>
8
+ <div class="field"><%= f.password_field :password %></div>
9
+ <%= f.submit t('rails_connector.views.user.login_button') %>
10
+ <% end -%>
11
+
12
+ <ul>
13
+ <li class="button_register"><%= link_to t('rails_connector.views.user.new_link'), :action => "new" %></li>
14
+ <li class="button_request_password"><%= link_to t('rails_connector.views.user.forgot_password_link'), :action => "forgot_password" %></li>
15
+ </ul>
@@ -0,0 +1,11 @@
1
+ <%= render :partial => 'flash_messages' %>
2
+
3
+ <%= form_for @user, :as => :user, :url => { :controller => 'user', :action => "new" } do |f| -%>
4
+ <%= profile_fields_for(f, UserController.editable_attributes_on_register) %>
5
+ <%= content_tag(:div,
6
+ label_tag('', t("rails_connector.views.user.captcha")),
7
+ :class => "label"
8
+ ) %>
9
+ <%= get_captcha(:options => {:lang => I18n.locale, :theme => 'clean'}).html_safe %>
10
+ <%= f.submit t('rails_connector.views.user.register_button') %>
11
+ <% end -%>
@@ -0,0 +1,8 @@
1
+ <%= render :partial => 'flash_messages' %>
2
+
3
+ <br />
4
+
5
+ <ul>
6
+ <li class="button_profile_edit"><%= link_to t('rails_connector.views.user.edit_link'), :action => "edit" %></li>
7
+ <li class="button_edit_password"><%= link_to t('rails_connector.views.user.edit_password_link'), :action => "edit_password" %></li>
8
+ </ul>
@@ -0,0 +1 @@
1
+ <%= render :partial => 'flash_messages' %>
@@ -0,0 +1,14 @@
1
+ <%= render :partial => 'flash_messages' %>
2
+
3
+ <%= form_for :user, :url => { :controller => 'user', :action => 'set_password' } do |f| -%>
4
+ <%= f.hidden_field(:token, :value => params[:token]) %>
5
+ <div class="label">
6
+ <%= f.label :new_password, t('rails_connector.views.user.new_password') %>
7
+ </div>
8
+ <div class="field"><%= f.password_field :new_password %></div>
9
+ <div class="label">
10
+ <%= f.label :new_password_confirm, t('rails_connector.views.user.new_password_confirm') %>
11
+ </div>
12
+ <div class="field"><%= f.password_field :new_password_confirm %></div>
13
+ <%= f.submit t("rails_connector.views.user.set_password_button") %>
14
+ <% end -%>
@@ -0,0 +1,13 @@
1
+ Rails.application.routes.draw do
2
+ root :to => 'rails_connector/cms_dispatch#index'
3
+ match ':id(/:name)',
4
+ :to => 'rails_connector/cms_dispatch#index',
5
+ :constraints => { :id => /\d+|[0-9a-f]{16}/ },
6
+ :as => "cms_id"
7
+ match 'toggle_markers/:id',
8
+ :to => 'rails_connector/cms_dispatch#toggle_editmarkers',
9
+ :as => "toggle_markers"
10
+ match '/*permalink',
11
+ :to => 'rails_connector/cms_dispatch#index',
12
+ :as => "cms_permalink"
13
+ end
@@ -0,0 +1,30 @@
1
+ de:
2
+ rails_connector:
3
+ controllers:
4
+ search:
5
+ specify_query: "Bitte geben Sie einen Suchbegriff ein."
6
+ try_another_key: "Bitte versuchen Sie es mit anderen Suchbegriffen erneut."
7
+ search_disabled: "Wegen Wartungsarbeiten steht die Suche derzeit nicht zur Verfügung. Bitte entschuldigen Sie die Störung."
8
+ pdf_external:
9
+ host_not_allowed: "%{host} ist als Quelle nicht erlaubt."
10
+ user:
11
+ login_successful: "Sie wurden erfolgreich angemeldet."
12
+ login_failed: "Login fehlgeschlagen, bitte überprüfen Sie ihre Eingaben."
13
+ registration_successful: "Sie wurden erfolgreich registriert. Sie bekommen in Kürze eine Bestätigung sobald die Registrierung geprüft wurde."
14
+ registration_successful_awaiting_confirmation: "Wir haben Ihnen eine E-Mail zur Bestätigung Ihrer Daten geschickt. Bitte klicken Sie auf den Link in der E-Mail, um Ihre Registrierung zu bestätigen."
15
+ registration_failed: "Registrierung fehlgeschlagen, bitte überprüfen Sie ihre Eingaben."
16
+ edit_successful: "Benutzerdaten wurden erfolgreich aktualisiert."
17
+ edit_failed: "Benutzerdaten konnten nicht aktualisiert werden, bitte überprüfen Sie ihre Eingaben."
18
+ edit_password_successful: "Passwort wurde erfolgreich aktualisiert."
19
+ edit_password_failed: "Passwort konnte nicht aktualisiert werden, bitte überprüfen Sie ihre Eingaben."
20
+ reset_password_successful: "Sie haben eine E-Mail mit einem Link zur Änderung Ihres Passwortes erhalten."
21
+ request_password_failed: "Es wurde kein Account zu diesem Login gefunden, bitte prüfen Sie ihre Eingabe."
22
+ password_cannot_be_empty: "Das Passwort kann nicht leer sein"
23
+ password_does_not_match_confirmation: "Das Passwort stimmt nicht mit der Bestätigung überein"
24
+ password_set: "Passwort wurde erfolgreich gesetzt."
25
+ token_url_invalid: "Um Ihr Passwort setzen zu können, müssen Sie den Link aus der E-Mail benutzen."
26
+ set_password_failed: "Fehler beim Setzen des Passwortes. Der Link, den Sie erhalten haben, ist drei Stunden gültig."
27
+ crm_error: "Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später nochmal."
28
+ email_blank: "E-Mail darf nicht leer sein."
29
+ crm_form:
30
+ submit_failed: "Absenden fehlgeschlagen, bitte überprüfen Sie ihre Eingaben."
@@ -0,0 +1,11 @@
1
+ de:
2
+ rails_connector:
3
+ errors:
4
+ messages:
5
+ blank: "darf nicht leer sein"
6
+ forbidden:
7
+ no_permissions: "Sie haben nicht die notwendigen Zugriffsrechte"
8
+ gone:
9
+ not_released_anymore: "Die Datei war nur bis zum %{valid_until} veröffentlicht."
10
+ not_yet_released: "Die Datei wird erst am %{valid_from} veröffentlicht."
11
+
@@ -0,0 +1,9 @@
1
+ de:
2
+ rails_connector:
3
+ helpers:
4
+ ratings:
5
+ bad: "schlecht"
6
+ mediocre: "mäßig"
7
+ average: "mittel"
8
+ good: "gut"
9
+ very_good: "super"
@@ -0,0 +1,6 @@
1
+ de:
2
+ rails_connector:
3
+ lib:
4
+ cms_accessible:
5
+ protected: "Die Datei ist geschützt"
6
+ not_released: "Die Datei wurde nicht veröffentlicht"
@@ -0,0 +1,8 @@
1
+ de:
2
+ rails_connector:
3
+ models:
4
+ comment:
5
+ name_missing: Bitte geben Sie Ihren Namen an.
6
+ body_missing: Bitte geben Sie Ihren Kommentar ein.
7
+ subject_missing: Bitte geben Sie einen Betreff für Ihren Kommentar ein.
8
+ email_format_invalid: Bitte geben Sie eine gültige E-Mail-Adresse ein.
@@ -0,0 +1,87 @@
1
+ de:
2
+ will_paginate:
3
+ page_gap: …
4
+ rails_connector:
5
+ views:
6
+ errors:
7
+ forbidden:
8
+ no_permissions: "Sie haben nicht die notwendigen Zugriffsrechte"
9
+ gone:
10
+ not_released_anymore: "Die Datei war nur bis zum %{valid_until} veröffentlicht."
11
+ not_yet_released: "Die Datei wird erst am %{valid_from} veröffentlicht."
12
+ search:
13
+ search_failed: "Ihre Suchanfrage konnte leider nicht ausgeführt werden"
14
+ hits: "Treffer"
15
+ cms:
16
+ comments:
17
+ title: Leserkommentare
18
+ add_comment: Kommentar hinzufügen
19
+ name: "Name:"
20
+ email: "E-Mail:"
21
+ subject: "Betreff:"
22
+ body: "Kommentar:"
23
+ submit: senden
24
+ no_comments: Keine Kommentare vorhanden
25
+ wrote_on: schrieb am
26
+ are_you_sure: "Diesen Kommentar wirklich löschen?"
27
+ login_required: "Bitte melden Sie sich an, um einen Kommentar zu hinterlassen."
28
+ rating:
29
+ rate_here: "Bewerten Sie hier!"
30
+ thanks: "Danke für Ihre Bewertung."
31
+ title: "Bewertung"
32
+ login_required: "Bitte melden Sie sich an, um eine Bewertung abzugeben."
33
+ reset: "Bewertung zurücksetzen"
34
+ are_you_sure: "Bewertung dieser Seite wirklich zurücksetzen?"
35
+ user:
36
+ contact:
37
+ email: E-Mail
38
+ fax: Fax
39
+ first_name: Vorname
40
+ gender: Geschlecht
41
+ job_title: Tätigkeit
42
+ language: Sprache
43
+ last_name: Nachname
44
+ letter_address: Anschrift
45
+ login: Benutzername
46
+ mobile_phone: Mobiltelefon
47
+ phone: Telefonnummer
48
+ want_email: Kontakt via E-Mail
49
+ want_phonecall: Kontakt via Telefon
50
+ want_snailmail: Kontakt via Post
51
+ street_address: Straße und Hausnummer
52
+ postalcode: Postleitzahl
53
+ locality: Ort
54
+ languages:
55
+ de: deutsch
56
+ en: englisch
57
+ gender_male: männlich
58
+ gender_female: weiblich
59
+ login: Benutzername
60
+ password: Passwort
61
+ old_password: altes Passwort
62
+ new_password: neues Passwort
63
+ new_password_confirm: neues Passwort bestätigen
64
+ captcha: Bitte geben Sie die 2 Wörter ein
65
+ register_button: Registrieren
66
+ login_button: Einloggen
67
+ edit_button: Speichern
68
+ change_password_button: Passwort ändern
69
+ set_password_button: Passwort setzen
70
+ forgot_password_button: Passwort zurücksetzen
71
+ forgot_password_subject: Ihre Anfrage zur Änderung Ihres Passwortes
72
+ forgot_password_heading: Sie haben ein neues Password angefordert.
73
+ register_password_confirmation_mail_subject: Bitte bestätigen Sie Ihre Registrierung
74
+ register_heading: Vielen Dank für Ihre Anmeldung.
75
+ confirm_request: 'Bitte bestätigen Sie Ihre Anfrage unter %{url} und setzen dort ein Passwort.'
76
+ no_request: 'Falls Sie keine Anfrage gestellt haben, können Sie diese Nachricht ignorieren.'
77
+ new_link: Registrieren
78
+ edit_link: Stammdaten bearbeiten
79
+ edit_password_link: Passwort bearbeiten
80
+ forgot_password_link: Passwort vergessen?
81
+ crm_form:
82
+ submit: Absenden
83
+ confirmation: 'Vielen Dank für Ihre Nachricht, wir werden uns in Kürze bei Ihnen melden!'
84
+ reference_further_questions: 'Ihre Anfrage wird bei uns unter der Kennung %{case_id} geführt. Bitte geben Sie diese bei Rückfragen mit an.'
85
+ title: Betreff
86
+ must_be_logged_in: 'Sie müssen angemeldet sein, um Zugriff auf diese Seite zu erhalten.'
87
+ logged_in_as: 'Sie sind angemeldet als %{user}'
@@ -0,0 +1,30 @@
1
+ en:
2
+ rails_connector:
3
+ controllers:
4
+ search:
5
+ specify_query: Please enter a search term.
6
+ try_another_key: Please repeat your search with a different search term.
7
+ search_disabled: Search is currently not available due to maintenance. We apologize for this error.
8
+ pdf_external:
9
+ host_not_allowed: "%{host} is not allowed as source host."
10
+ user:
11
+ login_successful: "You are logged in successfully."
12
+ login_failed: "Login failed, please check your login and password."
13
+ registration_successful: "You are registered successfully. You will get a confirmation as soon as your registration has been approved."
14
+ registration_successful_awaiting_confirmation: "We have sent you an email, asking to confirm your request. Please click on the link in that email to confirm the registration."
15
+ registration_failed: "Registration failed, please check your input."
16
+ edit_successful: "Updated user profile successfully."
17
+ edit_failed: "Updating failed, please check your input."
18
+ edit_password_successful: "Updated password successfully."
19
+ edit_password_failed: "Updating password failed, please check your input."
20
+ reset_password_successful: "You received an email with a link to change your password."
21
+ request_password_failed: "Account not found, please check your login."
22
+ password_cannot_be_empty: "Password cannot be empty"
23
+ password_does_not_match_confirmation: "Password did not match confirmation"
24
+ password_set: "Password was successfully set."
25
+ token_url_invalid: "In order to set your password, you must use the link from the e-mail you received."
26
+ set_password_failed: "Error setting password. The link you have received is valid for only 3 hours."
27
+ crm_error: "An error occured. Please try again later."
28
+ email_blank: "E-mail can't be blank."
29
+ crm_form:
30
+ submit_failed: "Submit failed, please check your input."
@@ -0,0 +1,10 @@
1
+ en:
2
+ rails_connector:
3
+ errors:
4
+ messages:
5
+ blank: "cannot be blank"
6
+ forbidden:
7
+ no_permissions: "You don't have the required permissions"
8
+ gone:
9
+ not_released_anymore: "The file was released only until %{valid_until}"
10
+ not_yet_released: "The file will be released on %{valid_from}"
@@ -0,0 +1,9 @@
1
+ en:
2
+ rails_connector:
3
+ helpers:
4
+ ratings:
5
+ bad: "bad"
6
+ mediocre: "mediocre"
7
+ average: "average"
8
+ good: "good"
9
+ very_good: "very good"
@@ -0,0 +1,6 @@
1
+ en:
2
+ rails_connector:
3
+ lib:
4
+ cms_accessible:
5
+ protected: "This file is protected"
6
+ not_released: "The file has not been released"
@@ -0,0 +1,8 @@
1
+ en:
2
+ rails_connector:
3
+ models:
4
+ comment:
5
+ name_missing: Please enter your name.
6
+ body_missing: Please enter your comment.
7
+ subject_missing: Please enter the subject of your comment.
8
+ email_format_invalid: Please enter a valid E-Mail.
@@ -0,0 +1,87 @@
1
+ en:
2
+ will_paginate:
3
+ page_gap: …
4
+ rails_connector:
5
+ views:
6
+ errors:
7
+ forbidden:
8
+ no_permissions: "You don't have the required permissions"
9
+ gone:
10
+ not_released_anymore: "The file was released only until %{valid_until}"
11
+ not_yet_released: "The file will be released on %{valid_from}"
12
+ search:
13
+ search_failed: Unfortunately your search request could not be completed
14
+ hits: hits
15
+ cms:
16
+ comments:
17
+ title: Comments
18
+ add_comment: Add a comment
19
+ name: "Name:"
20
+ email: "E-mail:"
21
+ subject: "Subject:"
22
+ body: "Comment:"
23
+ submit: send
24
+ no_comments: There are no comments yet
25
+ wrote_on: wrote on
26
+ are_you_sure: "Are you sure you want to delete this comment?"
27
+ login_required: Please login to leave a comment.
28
+ rating:
29
+ rate_here: "Please rate here."
30
+ thanks: "Thank you for rating."
31
+ title: "Rating"
32
+ login_required: Please login to rate this content.
33
+ reset: "Reset rating"
34
+ are_you_sure: "Are you sure you want to reset this rating?"
35
+ user:
36
+ contact:
37
+ email: Email
38
+ fax: Fax
39
+ first_name: First name
40
+ gender: Gender
41
+ job_title: Job title
42
+ language: Language
43
+ last_name: Last name
44
+ letter_address: Letter address
45
+ login: User name
46
+ mobile_phone: Mobile phone
47
+ phone: Phone number
48
+ want_email: Contact via email
49
+ want_phonecall: Contact via phone
50
+ want_snailmail: Contact via mail
51
+ street_address: Street
52
+ postalcode: Postal code
53
+ locality: City
54
+ languages:
55
+ de: German
56
+ en: English
57
+ gender_male: Male
58
+ gender_female: Female
59
+ login: User name
60
+ password: Password
61
+ old_password: Old password
62
+ new_password: New password
63
+ new_password_confirm: Confirm new password
64
+ captcha: Please type the two words
65
+ register_button: register
66
+ login_button: Login
67
+ edit_button: Save
68
+ change_password_button: Change password
69
+ set_password_button: Set password
70
+ forgot_password_button: Reset password
71
+ forgot_password_subject: Your request for changing your password
72
+ forgot_password_heading: You requested a new password.
73
+ register_password_confirmation_mail_subject: Please confirm your registration
74
+ register_heading: Thank you for signing up.
75
+ confirm_request: 'Please confirm your request by visiting %{url} and setting a password.'
76
+ no_request: 'If you did not request a new password, you can ignore this message.'
77
+ new_link: register
78
+ edit_link: edit personal data
79
+ edit_password_link: edit password
80
+ forgot_password_link: forgot password?
81
+ crm_form:
82
+ submit: Submit
83
+ confirmation: 'Thank you for contacting us, we will get back to you shortly'
84
+ reference_further_questions: 'If you have questions regarding this case, please refer to case %{case_id}.'
85
+ title: Subject
86
+ must_be_logged_in: 'You must be logged in to access this page.'
87
+ logged_in_as: 'You are logged in as %{user}'