diff options
author | Sebastian Silva (icarito) <sebastian@sugarlabs.org> | 2012-07-17 06:23:22 (GMT) |
---|---|---|
committer | Sebastian Silva (icarito) <sebastian@sugarlabs.org> | 2012-07-17 06:23:22 (GMT) |
commit | 2e4686d99359d8578185af24d175ede783fa3c85 (patch) | |
tree | bf62f00d0bb5c042f441802a8ddd249b73bc1e90 | |
parent | 9e08697ed432343ffd88339d34150c8b5b74977a (diff) |
Last tweaks for v0.4
-rw-r--r-- | app/app.py | 2 | ||||
-rw-r--r-- | app/static/css/browser.css | 4 | ||||
-rw-r--r-- | app/templates/_context-solution-list.html | 2 |
3 files changed, 7 insertions, 1 deletions
@@ -589,7 +589,7 @@ def solution_browser(resource_guid=None): resource=resource_cursor[offset] else: resource=resource_class(resource_guid, - reply=['guid', 'title', 'content', 'author', 'user', 'context', 'tags', 'mtime']) + reply=['guid', 'title', 'content', 'author', 'user', 'context', 'tags', 'mtime', 'type']) g.Solutions.filter(parent=resource['guid']) diff --git a/app/static/css/browser.css b/app/static/css/browser.css index d578085..7a37a0b 100644 --- a/app/static/css/browser.css +++ b/app/static/css/browser.css @@ -485,6 +485,10 @@ span.context-controls { img.tab-button { background-color: #e5e5e5; } +img.resource-button { + background-color: #e5e5e5; + margin: 6px; + } img.tab-button:hover { background-color: #808080; } diff --git a/app/templates/_context-solution-list.html b/app/templates/_context-solution-list.html index 5b6c23a..9d1584b 100644 --- a/app/templates/_context-solution-list.html +++ b/app/templates/_context-solution-list.html @@ -1,6 +1,8 @@ <div> <div class="icon-column"> <img src="/static/icons/sugar-xo.png"/> + <br/> + <img class="resource-button" src="/static/icons/button-{{resource['type']|special_str}}.png"/> </div> <div class="resource-header-column"> <div class="resource-title"> |