Sha256: e208b3445b911e27947a8adfc0a36b4c7da5c4410627e8320853fc11da974bdb

Contents?: true

Size: 1.85 KB

Versions: 44

Compression:

Stored size: 1.85 KB

Contents

- self.content_for(:html, :page) do
  /
    #{__FILE__}
  %div{'data-role' => 'header'}
    = @back_button.render(:html)
    %h1
      Information
  %div{'data-role' => 'content'}
    %ul{'data-role' => 'listview'}
      %li
        %span
          Version
        %span.ui-li-aside
          %code
            = "RubyApp #{RubyApp::VERSION}"
      %li
        %a{'href'   => 'https://github.com/virtualpatterns/ruby_app',
           'target' => '_blank'}
          Source
      %li
        %span
          Process ID
        %span.ui-li-aside
          %code
            = Process.pid
      %li
        %span
          Memory Usage
        %span.ui-li-aside
          %code
            - memory = `ps -o rss= -p #{$$}`.to_i
            = "#{memory} bytes"
      %li
        %span
          Server Time
        %span.ui-li-aside
          %code
            = RubyApp::Language.locale.strftime(Time.now, RubyApp::Application.configuration.format.date.long)
      %li
        %span
          Client Time
        %span.ui-li-aside
          %code
            = RubyApp::Language.locale.strftime(@now, RubyApp::Application.configuration.format.date.long)
      %li
        = @environment_link.render(:html) do |element|
          - element.content_for(:html, :link, 'Environment')
      %li
        = @cookies_link.render(:html) do |element|
          - element.content_for(:html, :link, 'Cookies')
      %li
        = @configuration_link.render(:html) do |element|
          - element.content_for(:html, :link) do
            %span
              Configuration
            %span.ui-li-count
              %code
                = ENV['RUBY_APP_CONFIGURATION'] || 'default'
      %li
        = @sessions_link.render(:html) do |element|
          - element.content_for(:html, :link) do
            %span
              Sessions
            %span.ui-li-count
              = RubyApp::Session.sessions.length

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.15 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.14 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.13 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.12 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.11 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.10 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.9 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.5 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.4 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.3 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.2 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.1 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.7.0 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.6.71 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.6.70 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.6.69 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.6.68 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.6.67 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.6.66 lib/ruby_app/elements/mobile/pages/information_page.html.haml