logster 0.8.4.5.pre → 0.8.4.6.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 539befdeeb988bc0f22b836f4d4b24aa99c48058
4
- data.tar.gz: 5b2bf45e6a173ea79231aa58a940e4281a0cc5d3
3
+ metadata.gz: 74e3d5019a8150cc107b5917c2466c6029bdc914
4
+ data.tar.gz: 0038b79111731c1b7462390775522ebad7419d66
5
5
  SHA512:
6
- metadata.gz: ce9f6cf6e516784b80c8ce91778b7d74b143e072616c12089246de3aba8c5b49a6127a506962ae2e77b9b16783153792d2321c2bff086eb92ed913404388244f
7
- data.tar.gz: 1f981c34ecbb5b5b5b78f84f55a42879b75eca309adf10c08a3a58cb3eafbecc5a6c28e3a053528eeea2903e92417ea0dbdf0873b1dd2eaec067ac2f410fb2ed
6
+ metadata.gz: 8a054e3703b0d7809ef4b702f2b022bd11aa93dbbbac5c081f146f677ee1470c67d85423d564b67b53ab1ee894da085eacd0bea91a1ac13f1aa2b12b89653692
7
+ data.tar.gz: 2d4e310d6d31dcfd113c6937cc3ab7b04822c46686ee1e0d7a2f70a9c2f9553d04e28a98068365ae4263122d769063f023e765b856a11f4946758ed39e3d7523
@@ -186,10 +186,21 @@ App.MessageCollection = Em.Object.extend({
186
186
  total: 0,
187
187
 
188
188
  "delete": function(message){
189
+ var messages = this.get('messages');
190
+ var idx = messages.indexOf(message);
189
191
  message.delete();
190
- this.get('messages').removeObject(message);
191
- this.set('currentMessage', null);
192
+ message.set('selected', false);
192
193
  this.set('total', this.get('total')-1);
194
+ this.get('messages').removeObject(message);
195
+
196
+ if (idx > 0) {
197
+ message = messages[idx-1];
198
+ message.set('selected', true);
199
+ this.set('currentMessage', message);
200
+ } else {
201
+ this.set('currentMessage', null);
202
+ }
203
+
193
204
  },
194
205
 
195
206
  load: function(opts) {
@@ -30,13 +30,13 @@
30
30
  <div class='message-actions'>
31
31
 
32
32
  {{#unless currentMessage.protected}}
33
- <button {{action 'remove'}} class="delete btn"><i class='fa fa-trash-o'></i>Delete</button>
33
+ <button {{action 'remove'}} class="delete btn danger"><i class='fa fa-trash-o'></i>Delete</button>
34
34
 
35
35
  <button {{action 'protect'}} class="protect btn"><i class='fa fa-lock'></i>Protect</button>
36
36
  {{else}}
37
37
  <button {{action 'unprotect'}} class="unprotect btn"><i class='fa fa-unlock'></i>Unprotect</button>
38
38
  {{/unless}}
39
- <a href="{{currentMessage.shareUrl}}" class="share btn">Share</a>
39
+ <a href="{{currentMessage.shareUrl}}" class="share btn"><i class='fa fa-share'></i>Share</a>
40
40
  </div>
41
41
 
42
42
  {{/if}}
@@ -4,15 +4,15 @@
4
4
  <tr>
5
5
  <th class="count"></th>
6
6
  <th class="severity"></th>
7
- <th class="info">Info</th>
7
+ <th class="info"></th>
8
8
  <th class="protected"></th>
9
- <th class="time">Time</th>
9
+ <th class="time"></th>
10
10
  </tr>
11
11
  </thead>
12
12
  <tbody>
13
13
  {{#if model.moreBefore}}
14
14
  <tr {{action "showMoreBefore"}} class="show-more">
15
- <td colspan=5>{{model.totalBefore}} more</td>
15
+ <td colspan=5>select to see {{model.totalBefore}} more</td>
16
16
  </tr>
17
17
  {{/if}}
18
18
  {{#each model.messages as |message|}}
@@ -52,6 +52,6 @@
52
52
  <label class="search">
53
53
  {{input type="textfield" placeholder="Search" value=search}}
54
54
  </label>
55
- <a class="clear btn danger" href {{action "clear"}}><i class='fa fa-trash-o'></i> Clear logs</a>
55
+ <a class="clear btn danger" href {{action "clear"}}><i class='fa fa-times'></i> Clear logs</a>
56
56
  </div>
57
57
  </div>
@@ -48,7 +48,7 @@ td.time {
48
48
  }
49
49
 
50
50
  th.count {
51
- width: 20px
51
+ width: 20px;
52
52
  }
53
53
 
54
54
  th.severity{
@@ -88,6 +88,7 @@ i.warning {
88
88
 
89
89
  td.count {
90
90
  text-align: right;
91
+ padding-right: 4px;
91
92
  }
92
93
 
93
94
  .count span {
@@ -1,3 +1,3 @@
1
1
  module Logster
2
- VERSION = "0.8.4.5.pre"
2
+ VERSION = "0.8.4.6.pre"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4.5.pre
4
+ version: 0.8.4.6.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - UI for viewing logs in Rack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler