Sha256: 3bba76afb56b8b88f556ac0c0f565efa7edea0ef3a9a77b7f25152301fb88940

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 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
          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

4 entries across 4 versions & 1 rubygems

Version Path
RubyApp-0.5.47 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.46 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.45 lib/ruby_app/elements/mobile/pages/information_page.html.haml
RubyApp-0.5.44 lib/ruby_app/elements/mobile/pages/information_page.html.haml