From 0bb20c56bdebdbb8b5d1d5c8ab5646d2a1571f81 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 18 Jan 2017 17:48:14 -0800 Subject: [PATCH] Link to docs.rs if no documentation is provided --- app/templates/components/crate-row.hbs | 2 ++ app/templates/crate/version.hbs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/templates/components/crate-row.hbs b/app/templates/components/crate-row.hbs index 80c27e3e65e..7b6de42f105 100644 --- a/app/templates/components/crate-row.hbs +++ b/app/templates/components/crate-row.hbs @@ -30,6 +30,8 @@ {{/if}} {{#if crate.documentation}}
  • Documentation
  • + {{else}} +
  • Documentation
  • {{/if}} {{#if crate.repository}}
  • Repository
  • diff --git a/app/templates/crate/version.hbs b/app/templates/crate/version.hbs index 30dccfaf25f..279cee967ed 100644 --- a/app/templates/crate/version.hbs +++ b/app/templates/crate/version.hbs @@ -155,6 +155,8 @@ {{/if}} {{#if crate.documentation}}
  • Documentation
  • + {{else}} +
  • Documentation
  • {{/if}} {{#if crate.repository}}
  • Repository