Sha256: 4d3cde2a54ee26a7e2dd8f0af7f1d00511ab5ae027bc69dee5ebec62250b4704

Contents?: true

Size: 1.51 KB

Versions: 11

Compression:

Stored size: 1.51 KB

Contents

- body_classes << "reversed"

#preferences.box
  - render_region :user do |user|
    - user.preferences do
      %h3
        .actions
          = button_to t("edit_preferences"), edit_admin_user_path(current_user), :method => :get
        = t('personal_preferences')
      = image_tag(gravatar_url(@user.email, :size=>"64px"), :class=>"avatar", :width=>64, :height=>64, :alt=>"")
      %p.ruled
        %label
          = t('name')
        %span
          = current_user.name
      %p.ruled
        %label
          = t('email_address')
        %span.uri
          = current_user.email
      %p.ruled
        %label
          = t('password')
        %big &bull;&bull;&bull;&bull;&bull;
      %p.ruled
        %label
          = t('language')
        %span
          = current_user.locale

#config.box
  - render_region :trusty_config do |config|
    - config.site do
      %h3
        - if current_user.admin?
          .actions
            = button_to t("edit_configuration"), edit_admin_configuration_path, :method => :get
        Configuration
      - TrustyCms.config.site_settings.each do |site_setting|
        %p.ruled
          = show_config site_setting, :class => (site_setting =~ /host$/ ? 'uri' : nil)

    - config.defaults do
      %h4 Defaults
      - TrustyCms.config.default_settings.each do |default_setting|
        %p.ruled
          = show_config default_setting

    - config.users do
      %h4 Passwords
      - TrustyCms.config.user_settings.each do |user_setting|
        %p.ruled
          = show_config user_setting

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
trusty-cms-4.0.2 app/views/admin/configuration/show.html.haml
trusty-cms-3.9.7 app/views/admin/configuration/show.html.haml
trusty-cms-3.9.6 app/views/admin/configuration/show.html.haml
trusty-cms-3.9.5 app/views/admin/configuration/show.html.haml
trusty-cms-4.0.1 app/views/admin/configuration/show.html.haml
trusty-cms-3.9.4 app/views/admin/configuration/show.html.haml
trusty-cms-3.9.3 app/views/admin/configuration/show.html.haml
trusty-cms-3.9.2 app/views/admin/configuration/show.html.haml
trusty-cms-4.0.0 app/views/admin/configuration/show.html.haml
trusty-cms-3.9.1 app/views/admin/configuration/show.html.haml
trusty-cms-3.9.0 app/views/admin/configuration/show.html.haml