Skip to content

Commit c7eb984

Browse files
committed
feat: Made gem page prettier
1 parent a12f909 commit c7eb984

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

client/templates/gem.html

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,24 @@
3737
<template name="viewGem">
3838
<div class="ten wide column">
3939
<h1><a href="{{pathFor route='gem.edit' _projectId=projectId}}"><i class="icon edit"></i></a>{{name}} {{#if filterValue}}- {{filterValue}}{{/if}}</h1>
40-
<div class="ui items">
41-
{{#each artifacts}}
42-
<div class="item">
43-
<div>
44-
{{#if artifact.image}}
45-
<a href={{pathFor 'artifact.view' _id=artifact._id _projectId=artifact.project}}>
46-
<img class="ui tiny image" src="{{artifact.image}}">
40+
41+
<div class="ui stackable two column centered grid">
42+
{{#each artifacts}}
43+
<div class="ui column">
44+
<div class="ui segment">
45+
<h2>
46+
<a href={{pathFor 'artifact.view' _id=artifact._id _projectId=artifact.project}}>{{artifact.name}}{{#if artifact.image}}
47+
<img src="{{artifact.image}}" class="ui mini right floated spaced rounded image">{{/if}}
4748
</a>
48-
{{/if}}
49-
</div>
50-
<div class="content">
51-
<a class="header" href={{pathFor 'artifact.view' _id=artifact._id _projectId=artifact.project}}>{{artifact.name}}</a>
52-
<div class="description">
53-
<ul>
54-
{{#each gems}}{{#each result}}
55-
<li>{{this}}</li>
56-
{{/each}}{{/each}}
57-
</ul>
58-
</div>
59-
</div>
49+
</h2>
50+
<ul>
51+
{{#each gems}}{{#each result}}
52+
<li>{{this}}</li>
53+
{{/each}}{{/each}}
54+
</ul>
6055
</div>
61-
{{/each}}
56+
</div>
57+
{{/each}}
6258
</div>
6359
</div>
6460
</template>

0 commit comments

Comments
 (0)