Sha256: 8d2c17409a5ad86adaa6ec75210783696bfdef6fa3d1fb067d87d8a46da3446f
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
- connected = database.connection .eight.wide.column{id: "segment_href_#{database.group.name.parameterize}_#{database.name.parameterize}", data: {href: summary_path(group: database.group.name.parameterize, database: database.name.parameterize)}} = link_to databases_path(group: database.group.name.parameterize, database: database.name.parameterize), style: 'text-decoration: none !important; color: inherit !important' do .ui.segments{style: 'margin-bottom: 10px;'} .ui.segment{style: 'height: 60px;'} %div{style: 'float: left;'} %div{style: 'font-size: 16px; font-weight: bold;'}= database.name %div{style: 'font-size: 12px; color: grey'}= database.host %button.ui.button.basic.button{style: 'float: right;', class: connected ? 'positive': 'negative'}= connected ? 'Online' : 'Offline' - if connected = render partial: partial, locals: {database: database, id: "segment_content_#{database.group.name.parameterize}_#{database.name.parameterize}"} .ui.segment{id: "segment_refreshed_#{database.group.name.parameterize}_#{database.name.parameterize}", style: 'height: 35px; display: none;'} %span.right.floated{id: "segment_refreshed_span_#{database.group.name.parameterize}_#{database.name.parameterize}", style: 'float:right; margin-top: -6px; color: grey'} Last refresh: = Time.now.strftime("%H:%M:%S GMT%z (%Z)") # Same as new Date().toTimeString() in JS
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pgbouncerhero-0.1.1 | app/views/pg_bouncer_hero/home/_card.html.haml |
pgbouncerhero-0.1.0 | app/views/pg_bouncer_hero/home/_card.html.haml |