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

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: Added escaping & addressed comments 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
« no previous file with comments | « 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..cd5a99a58a1e276427ab20a9bf918f26956555ca 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:
+ <a href="/packages/{{package.name}}/versions/{{package.latest.stable_href}}">{{package.latest.stable_name}}</a>
+ {{#package.latest.should_show_dev}}
+ /
+ <a href="/packages/{{package.name}}/versions/{{package.latest.dev_href}}">{{package.latest.dev_name}}</a>
+ {{/package.latest.should_show_dev}}
+ )
+ {{/package.latest.should_show}}
+ </span>
</h1>
<div class="row-fluid">
<div class="span8">
« no previous file with comments | « app/lib/templates.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698