zed/crates/server/templates/releases.hbs

36 lines
1.5 KiB
Handlebars
Raw Normal View History

2021-09-15 19:57:25 +03:00
{{#> layout }}
<div class="max-w-screen-lg p-5 mx-auto font-extralight text-main lg:p-20">
2021-09-17 21:59:02 +03:00
{{#if current_user}}
2021-09-21 01:23:01 +03:00
<h1 class="mb-10 font-display font-extralight">Releases</h1>
<p class="mt-5 leading-relaxed">Zed is currently only available on macOS.</p>
<p class="mt-5 mb-10 leading-relaxed">We are frequently shipping new versions, check back regularly to get the most recent version.</p>
{{#if releases}}
2021-09-17 21:59:02 +03:00
{{#each releases}}
<article id="{{name}}" class="mb-20">
<h3 class="mb-2 font-display font-extralight">{{name}}</h3>
<div>
<a class="text-sm underline opacity-80 hover:opacity-100" href="/releases/{{tag_name}}/{{assets.0.name}}">Download</a> · <a class="text-sm underline opacity-50 hover:opacity-100" href="https://github.com/zed-industries/zed/releases/tag/{{tag_name}}">Release Notes</a>
</p>
<div class="mt-10 type-prose">
{{{body}}}
</div>
<div class="mt-5">
<p>&mdash;&mdash;&mdash;</p>
</div>
</article>
{{/each}}
2021-09-17 21:59:02 +03:00
{{/if}}
{{else}}
2021-09-15 19:57:25 +03:00
2021-09-21 01:23:01 +03:00
<h1 class="mb-10 font-display font-extralight">Hold it!</h1>
<p class="mt-5 leading-relaxed">You can't access this without <a href=" /sign_in" class="mt-5 leading-relaxed underline">logging in</a>.</p>
<p class="mt-5 leading-relaxed">Try <a href="/community" class="mt-5 leading-relaxed underline">joining our community</a> to get access to updates & releases.</p>
{{/if}}
2021-09-15 19:57:25 +03:00
</div>
{{/layout}}