refinerycms-dashboard 0.9.9.7 → 0.9.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,9 +27,9 @@ module Admin
27
27
  end
28
28
 
29
29
  def disable_upgrade_message
30
- RefinerySetting.update_all({ :value => false }, {
31
- :name => 'show_internet_explorer_upgrade_message',
32
- :scoping => 'refinery'
30
+ RefinerySetting.set(:show_internet_explorer_upgrade_message, {
31
+ :value => false,
32
+ :scoping => 'refinery'
33
33
  })
34
34
  render :nothing => true
35
35
  end
@@ -0,0 +1,57 @@
1
+ <ul>
2
+ <% if Refinery::Plugins.active.names.include?("refinery_pages") %>
3
+ <li>
4
+ <%= link_to t('.add_a_new_page'),
5
+ new_admin_page_path,
6
+ :class => "add_icon" %>
7
+ </li>
8
+ <li>
9
+ <%= link_to t('.update_a_page'),
10
+ admin_pages_path,
11
+ :class => "edit_icon" %>
12
+ </li>
13
+ <% end %>
14
+ <% if Refinery::Plugins.active.names.include?("refinery_files") %>
15
+ <li>
16
+ <%= link_to t('.upload_a_file'),
17
+ new_admin_resource_path(:dialog => true,
18
+ :width => 600,
19
+ :height => 300),
20
+ :class => "add_icon" %>
21
+ </li>
22
+ <% end %>
23
+ <% if Refinery::Plugins.active.names.include?("refinery_images") %>
24
+ <li>
25
+ <%= link_to t('.upload_a_image'),
26
+ new_admin_image_path(:dialog => true,
27
+ :width => 600,
28
+ :height => 300),
29
+ :class => "add_icon" %>
30
+ </li>
31
+ <% end %>
32
+ <%= render :partial => 'additional_dashboard_menu_items' %>
33
+ </ul>
34
+
35
+ <% if defined?(::Refinery::I18n) and ::Refinery::I18n.enabled? %>
36
+ <% locales = ::Refinery::I18n.locales.clone %>
37
+ <% current_locale = ::I18n.locale %>
38
+ <% current_locale_title = locales.delete(current_locale) %>
39
+ <ul id='current_locale'>
40
+ <li>
41
+ <%= link_to "#", :style => "background-image: url('/images/refinery/icons/flags/#{current_locale}.png');" do %>
42
+ <%= current_locale_title.respond_to?(:force_encoding) ? current_locale_title.force_encoding('utf-8') : current_locale_title %>
43
+ <span><%= t('.change_language') %></span>
44
+ <span style='display:none;'><%= t('cancel', :scope => 'shared.admin.form_actions') %></span>
45
+ <% end %>
46
+ </li>
47
+ </ul>
48
+ <ul id='other_locales' style='display: none'>
49
+ <% locales.sort_by{|key, value| value}.each do |locale, locale_title| %>
50
+ <li>
51
+ <%= link_to locale_title.respond_to?(:force_encoding) ? locale_title.force_encoding('utf-8') : locale_title,
52
+ params.dup.tap { |p| p[:set_locale] = locale },
53
+ :style => "background-image: url('/images/refinery/icons/flags/#{locale}.png');" %>
54
+ </li>
55
+ <% end %>
56
+ </ul>
57
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <%= render :partial => "recent_activity" if @recent_activity.present? %>
2
+ <%= render :partial => "recent_inquiries" if @recent_inquiries.present? %>
@@ -1,68 +1,11 @@
1
1
  <div class='clearfix'>
2
- <div id='records' class='clearfix<%= ' one_list' if @recent_activity.empty? or @recent_inquiries.empty? %>'>
3
- <%= render :partial => "recent_activity" if @recent_activity.present? %>
4
- <%= render :partial => "recent_inquiries" if @recent_inquiries.present? %>
5
- </div>
6
- <div id='actions'>
2
+ <section id='records' class='clearfix<%= ' one_list' if @recent_activity.empty? or @recent_inquiries.empty? %>'>
3
+ <%= render :partial => 'records' %>
4
+ </section>
5
+ <aside id='actions'>
7
6
  <h2><%= t('.quick_tasks').titleize %></h2>
8
- <ul>
9
- <% if Refinery::Plugins.active.names.include?("refinery_pages") %>
10
- <li>
11
- <%= link_to t('.add_a_new_page'),
12
- new_admin_page_path,
13
- :class => "add_icon" %>
14
- </li>
15
- <li>
16
- <%= link_to t('.update_a_page'),
17
- admin_pages_path,
18
- :class => "edit_icon" %>
19
- </li>
20
- <% end %>
21
- <% if Refinery::Plugins.active.names.include?("refinery_files") %>
22
- <li>
23
- <%= link_to t('.upload_a_file'),
24
- new_admin_resource_path(:dialog => true,
25
- :width => 600,
26
- :height => 300),
27
- :class => "add_icon" %>
28
- </li>
29
- <% end %>
30
- <% if Refinery::Plugins.active.names.include?("refinery_images") %>
31
- <li>
32
- <%= link_to t('.upload_a_image'),
33
- new_admin_image_path(:dialog => true,
34
- :width => 600,
35
- :height => 300),
36
- :class => "add_icon" %>
37
- </li>
38
- <% end %>
39
- <%= render :partial => 'additional_dashboard_menu_items' %>
40
- </ul>
41
-
42
- <% if defined?(::Refinery::I18n) and ::Refinery::I18n.enabled? %>
43
- <% locales = ::Refinery::I18n.locales.clone %>
44
- <% current_locale = ::I18n.locale %>
45
- <% current_locale_title = locales.delete(current_locale) %>
46
- <ul id='current_locale'>
47
- <li>
48
- <%= link_to "#", :style => "background-image: url('/images/refinery/icons/flags/#{current_locale}.png');" do %>
49
- <%= current_locale_title.respond_to?(:force_encoding) ? current_locale_title.force_encoding('utf-8') : current_locale_title %>
50
- <span><%= t('.change_language') %></span>
51
- <span style='display:none;'><%= t('cancel', :scope => 'shared.admin.form_actions') %></span>
52
- <% end %>
53
- </li>
54
- </ul>
55
- <ul id='other_locales' style='display: none'>
56
- <% locales.sort_by{|key, value| value}.each do |locale, locale_title| %>
57
- <li>
58
- <%= link_to locale_title.respond_to?(:force_encoding) ? locale_title.force_encoding('utf-8') : locale_title,
59
- params.dup.tap { |p| p[:set_locale] = locale },
60
- :style => "background-image: url('/images/refinery/icons/flags/#{locale}.png');" %>
61
- </li>
62
- <% end %>
63
- </ul>
64
- <% end %>
65
- </div>
7
+ <%= render :partial => 'actions' %>
8
+ </aside>
66
9
  </div>
67
10
  <% if request.env["HTTP_USER_AGENT"] =~ /MSIE/ and
68
11
  RefinerySetting.find_or_set(:show_internet_explorer_upgrade_message, true, :scoping => 'refinery') %>
@@ -7,6 +7,7 @@ cs:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Rychlé příkazy
10
+ actions:
10
11
  add_a_new_page: Přidat novou stránku
11
12
  update_a_page: Upravit stránku
12
13
  upload_a_image: Nahrát obrázek
@@ -7,6 +7,7 @@ da:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Handlinger
10
+ actions:
10
11
  add_a_new_page: Tilføj en ny side
11
12
  update_a_page: Redigér en side
12
13
  upload_a_image: Upload et billede
@@ -7,6 +7,7 @@ de:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Allgemeine Aufgaben
10
+ actions:
10
11
  add_a_new_page: Neue Seite erstellen
11
12
  update_a_page: Eine Seite aktualisieren
12
13
  upload_a_image: Ein Bild hochladen
@@ -7,6 +7,7 @@ el:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Γρήγορες ενέργειες
10
+ actions:
10
11
  add_a_new_page: Προσθήκη σελίδας
11
12
  update_a_page: Ενημέρωση σελίδας
12
13
  upload_a_image: Μεταφόρτωση εικόνας
@@ -7,6 +7,7 @@ en:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Quick tasks
10
+ actions:
10
11
  add_a_new_page: Add a new page
11
12
  update_a_page: Update a page
12
13
  upload_a_image: Upload an image
@@ -7,6 +7,7 @@ es:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Tareas comunes
10
+ actions:
10
11
  add_a_new_page: Añadir nueva página
11
12
  update_a_page: Actualizar una página
12
13
  upload_a_image: Subir una imagen
@@ -7,6 +7,7 @@ fr:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Tâches courantes
10
+ actions:
10
11
  add_a_new_page: Ajouter une page
11
12
  update_a_page: Mettre à jour une page
12
13
  upload_a_image: Ajouter une image
@@ -6,6 +6,7 @@ it:
6
6
  dashboard:
7
7
  index:
8
8
  quick_tasks: Accesso rapido
9
+ actions:
9
10
  add_a_new_page: Crea una nuova pagina
10
11
  update_a_page: Modifica una pagina
11
12
  upload_a_image: "Carica un'immagine"
@@ -15,13 +16,13 @@ it:
15
16
  recent_activity:
16
17
  empty: non sono state registrate attività recenti
17
18
  latest_activity: Attività recenti
18
- latest_activity_message: '%{what} %{kind} è stato %{action}'
19
+ latest_activity_message: "Una risorsa '%{what} %{kind}' è stata %{action}"
19
20
  see: Vedere '%{what}'
20
21
  recent_inquiries:
21
22
  latest_inquiries: Ultimi messaggi
22
23
  updated:
23
- 'with_article "the"': modificato
24
+ 'with_article "the"': modificata
24
25
  created:
25
- 'with_article "the"': creato
26
+ 'with_article "the"': creata
26
27
  ago: "%{time} fa"
27
28
  see: Vedere
@@ -7,6 +7,7 @@ lolcat:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: QUICK TASKZ
10
+ actions:
10
11
  add_a_new_page: ADD NEW PAEG
11
12
  update_a_page: UPDATE PAEG
12
13
  upload_a_image: UPLOAD AN IMAGE
@@ -7,6 +7,7 @@ lt:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Greiti veiksmai
10
+ actions:
10
11
  add_a_new_page: Pridėti naują puslapį
11
12
  update_a_page: Atnaujinti puslapį
12
13
  upload_a_image: Įkelti paveikslėlį
@@ -7,6 +7,7 @@ lv:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Ātrie uzdevumi
10
+ actions:
10
11
  add_a_new_page: Pievienot jaunu lapu
11
12
  update_a_page: Atjaunināt lapu
12
13
  upload_a_image: Augšupielādēt bildi
@@ -7,6 +7,7 @@ nb:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Vanlige oppgaver
10
+ actions:
10
11
  add_a_new_page: Legg til en ny side
11
12
  update_a_page: Oppdater en side
12
13
  upload_a_image: Last opp et bilde
@@ -7,6 +7,7 @@ nl:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Algemene taken
10
+ actions:
10
11
  add_a_new_page: Voeg een nieuwe pagina toe
11
12
  update_a_page: Bewerk een pagina
12
13
  upload_a_image: Upload een afbeelding
@@ -7,6 +7,7 @@ pl:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Szybkie zadania
10
+ actions:
10
11
  add_a_new_page: Dodaj nową stronę
11
12
  update_a_page: Aktualizuj stronę
12
13
  upload_a_image: Wgraj obrazek
@@ -7,6 +7,7 @@ pt-BR:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Tarefas comuns
10
+ actions:
10
11
  add_a_new_page: Adicionar uma nova página
11
12
  update_a_page: Atualizar uma página
12
13
  upload_a_image: Enviar uma imagem
@@ -7,6 +7,7 @@ rs:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Brzi zadaci
10
+ actions:
10
11
  add_a_new_page: Dodaj novu stranu
11
12
  update_a_page: Izmeni stranu
12
13
  upload_a_image: Upload-uj sliku
@@ -7,6 +7,7 @@ ru:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Быстрые задачи
10
+ actions:
10
11
  add_a_new_page: Добавить новую страницу
11
12
  update_a_page: Изменить страницу
12
13
  upload_a_image: Загрузить изображение
@@ -7,6 +7,7 @@ sk:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Rýchle príkazy
10
+ actions:
10
11
  add_a_new_page: Pridať novú stránku
11
12
  update_a_page: Upraviť stránku
12
13
  upload_a_image: Nahrať obrázok
@@ -7,6 +7,7 @@ sl:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Pogosta opravila
10
+ actions:
10
11
  add_a_new_page: Dodaj novo stran
11
12
  update_a_page: Uredi stran
12
13
  upload_a_image: Naloži sliko
@@ -7,6 +7,7 @@ sv:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Genvägar
10
+ actions:
10
11
  add_a_new_page: Lägg till en ny sida
11
12
  update_a_page: Redigera en sida
12
13
  upload_a_image: Ladda upp en bild
@@ -7,6 +7,7 @@ vi:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: Truy cập nhanh các tác vụ
10
+ actions:
10
11
  add_a_new_page: Thêm một trang mới
11
12
  update_a_page: Cập nhật một trang
12
13
  upload_a_image: Upload một tệp hình ảnh
@@ -7,6 +7,7 @@ zh-CN:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: 快速任务
10
+ actions:
10
11
  add_a_new_page: 添加页面
11
12
  update_a_page: 更新页面
12
13
  upload_a_image: 上传图片
@@ -7,6 +7,7 @@ zh-TW:
7
7
  dashboard:
8
8
  index:
9
9
  quick_tasks: 快速啟動
10
+ actions:
10
11
  add_a_new_page: 新增頁面
11
12
  update_a_page: 更新頁面
12
13
  upload_a_image: 上傳圖片
@@ -9,6 +9,10 @@ module Refinery
9
9
 
10
10
  class Engine < ::Rails::Engine
11
11
 
12
+ initializer "serve static assets" do |app|
13
+ app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
14
+ end
15
+
12
16
  config.after_initialize do
13
17
  ::Refinery::Plugin.register do |plugin|
14
18
  plugin.name = "refinery_dashboard"
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-dashboard}
5
- s.version = %q{0.9.9.7}
5
+ s.version = %q{0.9.9.8}
6
6
  s.summary = %q{Dashboard engine for Refinery CMS}
7
7
  s.description = %q{The dashboard is usually the first engine the user sees in the backend of Refinery CMS. It displays useful information and contains links to common functionality.}
8
- s.date = %q{2011-03-10}
8
+ s.date = %q{2011-03-11}
9
9
  s.email = %q{info@refinerycms.com}
10
10
  s.homepage = %q{http://refinerycms.com}
11
11
  s.rubyforge_project = %q{refinerycms}
@@ -25,9 +25,11 @@ Gem::Specification.new do |s|
25
25
  'app/views',
26
26
  'app/views/admin',
27
27
  'app/views/admin/dashboard',
28
+ 'app/views/admin/dashboard/_actions.html.erb',
28
29
  'app/views/admin/dashboard/_additional_dashboard_menu_items.html.erb',
29
30
  'app/views/admin/dashboard/_recent_activity.html.erb',
30
31
  'app/views/admin/dashboard/_recent_inquiries.html.erb',
32
+ 'app/views/admin/dashboard/_records.html.erb',
31
33
  'app/views/admin/dashboard/index.html.erb',
32
34
  'app/views/admin/dashboard/index.rss.builder',
33
35
  'config',
@@ -68,5 +70,5 @@ Gem::Specification.new do |s|
68
70
  'refinerycms-dashboard.gemspec'
69
71
  ]
70
72
 
71
- s.add_dependency 'refinerycms-core', '~> 0.9.9.7'
73
+ s.add_dependency 'refinerycms-core', '~> 0.9.9.8'
72
74
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-dashboard
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9.7
5
+ version: 0.9.9.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Resolve Digital
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2011-03-10 00:00:00 +13:00
16
+ date: 2011-03-11 00:00:00 +13:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 0.9.9.7
27
+ version: 0.9.9.8
28
28
  type: :runtime
29
29
  version_requirements: *id001
30
30
  description: The dashboard is usually the first engine the user sees in the backend of Refinery CMS. It displays useful information and contains links to common functionality.
@@ -38,9 +38,11 @@ extra_rdoc_files: []
38
38
  files:
39
39
  - app/controllers/admin/dashboard_controller.rb
40
40
  - app/helpers/admin/dashboard_helper.rb
41
+ - app/views/admin/dashboard/_actions.html.erb
41
42
  - app/views/admin/dashboard/_additional_dashboard_menu_items.html.erb
42
43
  - app/views/admin/dashboard/_recent_activity.html.erb
43
44
  - app/views/admin/dashboard/_recent_inquiries.html.erb
45
+ - app/views/admin/dashboard/_records.html.erb
44
46
  - app/views/admin/dashboard/index.html.erb
45
47
  - app/views/admin/dashboard/index.rss.builder
46
48
  - config/locales/cs.yml