forked from manosbatsis/restdude
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
manos
committed
Jun 1, 2017
1 parent
766c7bb
commit 1b875f6
Showing
2 changed files
with
136 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,68 @@ | ||
{{outlet}} | ||
|
||
<div class="layout-fill layout-row layout-align-center-start "> | ||
|
||
{{#paper-card as |card|}} | ||
{{#paper-toolbar class="md-menu-toolbar" as |toolbar|}} | ||
{{#toolbar.tools class="layout-row"}} | ||
<span class="flex"></span> | ||
<h2 class="">My Apps</h2> | ||
<span class="flex"></span> | ||
{{/toolbar.tools}} | ||
{{/paper-toolbar}} | ||
|
||
{{#if model.length}} | ||
{{#paper-list}} | ||
{{#each model as |item|}} | ||
{{#paper-item class="md-3-line md-long-text" borderBottom=true onClick=(action (transition-to "spaces.space" item)) as |controls| }} | ||
|
||
{{#if item.avatarUrl}} | ||
<img src={{item.avatarUrl}} alt={{item.name}} class="md-avatar"> | ||
{{else}} | ||
|
||
{{ember-initials class="md-avatar" | ||
size=50 | ||
name=item.title | ||
seedText=item.title | ||
defaultName='?' | ||
textColor="white" | ||
fontSize=55 | ||
fontWeight=100 | ||
fontFamily="Helvetica Neue Light, Arial, sans-serif" | ||
}} | ||
{{/if}} | ||
<div class="md-list-item-text"> | ||
<h3>{{item.title}} <span class="username">({{item.name}})</span></h3> | ||
<p>Created {{moment-to-now item.createdDate}} </p> | ||
<p>{{item.description}} </p> | ||
</div> | ||
<div class="flex"> | ||
| ||
</div> | ||
{{paper-icon "keyboard-arrow-right"}} | ||
{{/paper-item}} | ||
{{/each}} | ||
{{/paper-list}} | ||
|
||
{{#if model.meta.documentLinks}} | ||
{{#card.actions class="layout-row"}} | ||
{{#each-in model.meta.documentLinks as |key value|}} | ||
{{#paper-button href=value.href}}{{key}}{{/paper-button}} | ||
{{/each-in}} | ||
{{/card.actions}} | ||
{{/if}} | ||
|
||
{{else}} | ||
|
||
{{#card.content}} | ||
<p> | ||
This space has no members. | ||
</p> | ||
{{/card.content}} | ||
|
||
{{/if}} | ||
|
||
{{/paper-card}} | ||
|
||
|
||
|
||
</div> |
69 changes: 68 additions & 1 deletion
69
restdude-client-ember/app/templates/spaces/space/websites.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,68 @@ | ||
{{outlet}} | ||
|
||
<div class="layout-fill layout-row layout-align-center-start "> | ||
|
||
{{#paper-card as |card|}} | ||
{{#paper-toolbar class="md-menu-toolbar" as |toolbar|}} | ||
{{#toolbar.tools class="layout-row"}} | ||
<span class="flex"></span> | ||
<h2 class="">My Websites</h2> | ||
<span class="flex"></span> | ||
{{/toolbar.tools}} | ||
{{/paper-toolbar}} | ||
|
||
{{#if model.length}} | ||
{{#paper-list}} | ||
{{#each model as |item|}} | ||
{{#paper-item class="md-3-line md-long-text" borderBottom=true onClick=(action (transition-to "spaces.space" item)) as |controls| }} | ||
|
||
{{#if item.avatarUrl}} | ||
<img src={{item.avatarUrl}} alt={{item.name}} class="md-avatar"> | ||
{{else}} | ||
|
||
{{ember-initials class="md-avatar" | ||
size=50 | ||
name=item.title | ||
seedText=item.title | ||
defaultName='?' | ||
textColor="white" | ||
fontSize=55 | ||
fontWeight=100 | ||
fontFamily="Helvetica Neue Light, Arial, sans-serif" | ||
}} | ||
{{/if}} | ||
<div class="md-list-item-text"> | ||
<h3>{{item.title}} <span class="username">({{item.name}})</span></h3> | ||
<p>Created {{moment-to-now item.createdDate}} </p> | ||
<p>{{item.description}} </p> | ||
</div> | ||
<div class="flex"> | ||
| ||
</div> | ||
{{paper-icon "keyboard-arrow-right"}} | ||
{{/paper-item}} | ||
{{/each}} | ||
{{/paper-list}} | ||
|
||
{{#if model.meta.documentLinks}} | ||
{{#card.actions class="layout-row"}} | ||
{{#each-in model.meta.documentLinks as |key value|}} | ||
{{#paper-button href=value.href}}{{key}}{{/paper-button}} | ||
{{/each-in}} | ||
{{/card.actions}} | ||
{{/if}} | ||
|
||
{{else}} | ||
|
||
{{#card.content}} | ||
<p> | ||
This space has no members. | ||
</p> | ||
{{/card.content}} | ||
|
||
{{/if}} | ||
|
||
{{/paper-card}} | ||
|
||
|
||
|
||
</div> |