diff options
author | Sebastian Silva (icarito) <sebastian@sugarlabs.org> | 2012-07-11 17:20:44 (GMT) |
---|---|---|
committer | Sebastian Silva (icarito) <sebastian@sugarlabs.org> | 2012-07-11 17:20:44 (GMT) |
commit | 3c172c514385777825b04eb26f8f6a5bc7383113 (patch) | |
tree | c0dd154a79c62015f8a42e1cf9b9b9135962a8c8 | |
parent | e4a2ae319f33f9d60859faadc807bc998e8c70ee (diff) |
Fix launch behaviour
-rw-r--r-- | app/templates/_browser-grid.html | 2 | ||||
-rw-r--r-- | app/templates/context-view.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/templates/_browser-grid.html b/app/templates/_browser-grid.html index 773088b..85de02f 100644 --- a/app/templates/_browser-grid.html +++ b/app/templates/_browser-grid.html @@ -21,7 +21,7 @@ </a> <div class="iconbox"> - {%- if context['type']=='activity' -%} + {%- if 'activity' in context['type'] -%} <a href="/launch/{{context['guid']}}"> {%- else -%} <a href="/context/reviews/{{context['guid']}}"> diff --git a/app/templates/context-view.html b/app/templates/context-view.html index 598fa63..022feb1 100644 --- a/app/templates/context-view.html +++ b/app/templates/context-view.html @@ -40,7 +40,7 @@ <img class="wiki-icon {{als}}" src="/static/icons/button-list.png" /> </a> <div class="iconbox"> - {%- if context['type']=='activity' -%} + {%- if 'activity' in context['type'] -%} <a href="/launch/{{context['guid']}}"> {%- else -%} <a href="/context/reviews/{{context['guid']}}"> |