Sha256: fb61caf207be8ca11c3654cc49b1e32c51cbfc9a6807edbad7eb76fc2d98df5b

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

- body_classes << "reversed"

#preferences.box
  - render_region :user do |user|
    - user.preferences do
      %h3
        .actions
          = button_to t("edit_preferences"), "/admin/preferences", :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('login') 
        %span
          = current_user.login
      %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 admin?
          .actions
            = button_to t("edit_configuration"), edit_admin_configuration_url, :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

1 entries across 1 versions & 1 rubygems

Version Path
trusty-cms-1.0.0 app/views/admin/configuration/show.html.haml