Add in an app usage page #1022
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
/standalone | ||
*/ | ||
@import 'lib'; | ||
|
||
.standalone { | ||
ul { | ||
list-style: none; | ||
} | ||
li { | ||
padding: 3px 0; | ||
} | ||
h3 { | ||
text-transform: uppercase; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. try |
||
margin-bottom: 15px; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
define('views/usage', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'define' is not defined. |
||
['l10n'], | ||
function(l10n) { | ||
'use strict'; | ||
|
||
var gettext = l10n.gettext; | ||
|
||
return function(builder, args, params) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'params' is defined but never used. |
||
builder.start('usage.html'); | ||
builder.z('type', 'leaf'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: i like having builder.z on top of builder.start There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. k |
||
builder.z('title', gettext('App Statistics')); | ||
}; | ||
}); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<section class="main"> | ||
<div class="subheader"> | ||
<h1> | ||
{{ _('App Statistics') }} | ||
</h1> | ||
</div> | ||
</section> | ||
|
||
<section class="standalone main full"> | ||
<div> | ||
<h3>App usage data</h3> | ||
<p>Not enough data to show.</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding in some l10n here. |
||
</div> | ||
</section> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what standalone means. Maybe we should just pull the styles into our base CSS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a listings page, but a random page. Dunno, any advice on naming welcome.