Sha256: 79c79c33f1a118c45152df7b49410e718815c819cb81fc48155519784d803ade

Contents?: true

Size: 1.72 KB

Versions: 19

Compression:

Stored size: 1.72 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
        %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
        = @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
        = @scripts_link.render(:html) do |element|
          - element.content_for(:html, :link) do
            %span
              Scripts
            %span.ui-li-count
              = RubyApp::Session.get_scripts.length
      %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

19 entries across 19 versions & 1 rubygems

Version Path
RubyApp-0.5.66 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.65 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.64 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.63 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.62 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.61 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.60 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.59 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.58 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.57 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.56 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.55 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.54 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.53 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.52 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.51 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.50 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.49 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.48 lib/ruby_app/elements/mobile/pages/information_page.html.haml