refinerycms-dashboard 0.9.9.7 → 0.9.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/controllers/admin/dashboard_controller.rb +3 -3
- data/app/views/admin/dashboard/_actions.html.erb +57 -0
- data/app/views/admin/dashboard/_records.html.erb +2 -0
- data/app/views/admin/dashboard/index.html.erb +6 -63
- data/config/locales/cs.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/el.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/es.yml +1 -0
- data/config/locales/fr.yml +1 -0
- data/config/locales/it.yml +4 -3
- data/config/locales/lolcat.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +1 -0
- data/config/locales/nb.yml +1 -0
- data/config/locales/nl.yml +1 -0
- data/config/locales/pl.yml +1 -0
- data/config/locales/pt-BR.yml +1 -0
- data/config/locales/rs.yml +1 -0
- data/config/locales/ru.yml +1 -0
- data/config/locales/sk.yml +1 -0
- data/config/locales/sl.yml +1 -0
- data/config/locales/sv.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +1 -0
- data/config/locales/zh-TW.yml +1 -0
- data/lib/refinerycms-dashboard.rb +4 -0
- data/refinerycms-dashboard.gemspec +5 -3
- metadata +5 -3
| @@ -27,9 +27,9 @@ module Admin | |
| 27 27 | 
             
                end
         | 
| 28 28 |  | 
| 29 29 | 
             
                def disable_upgrade_message
         | 
| 30 | 
            -
                  RefinerySetting. | 
| 31 | 
            -
             | 
| 32 | 
            -
             | 
| 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 %>
         | 
| @@ -1,68 +1,11 @@ | |
| 1 1 | 
             
            <div class='clearfix'>
         | 
| 2 | 
            -
              < | 
| 3 | 
            -
                <%= render :partial =>  | 
| 4 | 
            -
             | 
| 5 | 
            -
               | 
| 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 | 
            -
                 | 
| 9 | 
            -
             | 
| 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') %>
         | 
    
        data/config/locales/cs.yml
    CHANGED
    
    
    
        data/config/locales/da.yml
    CHANGED
    
    
    
        data/config/locales/de.yml
    CHANGED
    
    
    
        data/config/locales/el.yml
    CHANGED
    
    
    
        data/config/locales/en.yml
    CHANGED
    
    
    
        data/config/locales/es.yml
    CHANGED
    
    
    
        data/config/locales/fr.yml
    CHANGED
    
    
    
        data/config/locales/it.yml
    CHANGED
    
    | @@ -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} è  | 
| 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"':   | 
| 24 | 
            +
                'with_article "the"':  modificata
         | 
| 24 25 | 
             
              created:
         | 
| 25 | 
            -
                'with_article "the"':   | 
| 26 | 
            +
                'with_article "the"':  creata
         | 
| 26 27 | 
             
              ago: "%{time} fa"
         | 
| 27 28 | 
             
              see: Vedere
         | 
    
        data/config/locales/lolcat.yml
    CHANGED
    
    
    
        data/config/locales/lt.yml
    CHANGED
    
    
    
        data/config/locales/lv.yml
    CHANGED
    
    
    
        data/config/locales/nb.yml
    CHANGED
    
    
    
        data/config/locales/nl.yml
    CHANGED
    
    
    
        data/config/locales/pl.yml
    CHANGED
    
    
    
        data/config/locales/pt-BR.yml
    CHANGED
    
    
    
        data/config/locales/rs.yml
    CHANGED
    
    
    
        data/config/locales/ru.yml
    CHANGED
    
    
    
        data/config/locales/sk.yml
    CHANGED
    
    
    
        data/config/locales/sl.yml
    CHANGED
    
    
    
        data/config/locales/sv.yml
    CHANGED
    
    
    
        data/config/locales/vi.yml
    CHANGED
    
    
    
        data/config/locales/zh-CN.yml
    CHANGED
    
    
    
        data/config/locales/zh-TW.yml
    CHANGED
    
    
| @@ -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. | 
| 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- | 
| 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. | 
| 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. | 
| 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- | 
| 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. | 
| 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
         |