fixes to listview
This commit is contained in:
parent
6abb192719
commit
3efddf91c1
2 changed files with 14 additions and 18 deletions
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* list-row */
|
||||
div.list-row {
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 5px 0px;
|
||||
}
|
||||
|
||||
|
|
@ -102,15 +102,11 @@ span.bar-empty {
|
|||
/* stats */
|
||||
|
||||
div.stat-wrapper {
|
||||
margin-bottom: 19px;
|
||||
margin-bottom: 19px;
|
||||
}
|
||||
|
||||
div.stat-grid {
|
||||
border: 2px solid #bbb;
|
||||
background-color: white;
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
margin-top: 9px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
|
@ -125,19 +121,19 @@ div.stat-label, div.stat-label a {
|
|||
|
||||
div.stat-item {
|
||||
position: relative;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
div.stat-item:last-child {
|
||||
border-bottom: 0px solid #ddd;
|
||||
margin-bottom: 7px;
|
||||
background-color: #fff;
|
||||
height: 22px;
|
||||
border: 2px solid #aaa;
|
||||
border-radius: 11px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div.stat-bar {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
background-color: #def;
|
||||
background-color: #DEF9A7;
|
||||
border-radius: 11px 0px 0px 11px;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -332,7 +332,7 @@ wn.views.ListView = Class.extend({
|
|||
{width: '3%', content:'docstatus', css: {"text-align": "center"}},
|
||||
{width: '35%', content:'name'},
|
||||
{width: '40%', content:'tags', css: {'color':'#aaa'}},
|
||||
{width: '15%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
{width: '15%', content:'modified', css: {'text-align': 'right', 'color':'#222'}}
|
||||
],
|
||||
render_column: function(data, parent, opts) {
|
||||
var me = this;
|
||||
|
|
@ -424,7 +424,7 @@ wn.views.ListView = Class.extend({
|
|||
data.when = dateutil.str_to_user(data.modified).split(' ')[0];
|
||||
var diff = dateutil.get_diff(dateutil.get_today(), data.modified.split(' ')[0]);
|
||||
if(diff==0) {
|
||||
data.when = 'Today'
|
||||
data.when = dateutil.comment_when(data.modified);
|
||||
}
|
||||
if(diff == 1) {
|
||||
data.when = 'Yesterday'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue