Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(847)

Unified Diff: app/views/pkg/show.mustache

Issue 2074933004: Add support for showing latest dev/stable versions (Closed) Base URL: git@github.com:dart-lang/pub-dartlang-dart.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« app/lib/handlers.dart ('K') | « app/lib/templates.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/views/pkg/show.mustache
diff --git a/app/views/pkg/show.mustache b/app/views/pkg/show.mustache
index f441720f756c59068eeb544b888d3dfbcbb41f88..d1cec983aba428b8ef8bcb39cedbee9f507033d8 100644
--- a/app/views/pkg/show.mustache
+++ b/app/views/pkg/show.mustache
@@ -4,7 +4,18 @@
<h1>
{{package.name}}
- <span class="version">{{package.latest_version.version}}</span>
+ <span class="version">{{package.selected_version.version}}</span>
+ <span class="version" style="font-weight: normal">
+ {{#package.latest.should_show}}
+ (latest:
Søren Gjesse 2016/06/17 07:03:37 I saw that you already deployed this, and maybe th
kustermann 2016/06/28 09:53:31 I couldn't get any feedback without deploying and
+ <a href="/packages/{{package.name}}/versions/{{package.latest.stable}}" >{{package.latest.stable}}</a>
+ {{#package.latest.should_show_dev}}
+ /
+ <a href="/packages/{{package.name}}/versions/{{package.latest.dev}}" >{{package.latest.dev}}</a>
+ {{/package.latest.should_show_dev}}
+ )
+ {{/package.latest.should_show}}
+ </span>
</h1>
<div class="row-fluid">
<div class="span8">
« app/lib/handlers.dart ('K') | « app/lib/templates.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698