-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #555 from ineedsubstance/component/dashboard/my-la…
…test New component for My Latest content
- Loading branch information
Showing
8 changed files
with
118 additions
and
13 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 |
---|---|---|
|
@@ -50,4 +50,3 @@ attributes: | |
- type: quote | ||
id: service-quote | ||
name: Service Quote | ||
|
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
'use strict'; | ||
|
||
/* | ||
* Sample Data for Styles Route | ||
* | ||
* @returns {object} - Object containing sample data to use when rendering samples in the Style Guide | ||
*/ | ||
|
||
module.exports = { | ||
tableData: { | ||
name: 'My Latest', | ||
headers: [ | ||
'content', | ||
'last edited', | ||
'actions', | ||
' ', | ||
], | ||
body: [ | ||
[ | ||
'Conversation API', | ||
'Tue Nov 15 2016 11:09:03 GMT+0000 (UTC)', | ||
{ | ||
url: '/edit', | ||
title: 'Edit Latest Revision', | ||
}, | ||
'Draft', | ||
], | ||
[ | ||
'Conversation Overview', | ||
'Mon Nov 14 2016 03:22:12 GMT+0000 (UTC)', | ||
{ | ||
url: '/edit', | ||
title: 'Edit Latest Revision', | ||
}, | ||
'Draft', | ||
], | ||
[ | ||
'Python SDK', | ||
'Fri Nov 11 2016 12:12:01 GMT+0000 (UTC)', | ||
{ | ||
url: '/edit', | ||
title: 'Edit Latest Revision', | ||
}, | ||
'Draft', | ||
], | ||
[ | ||
'News Intelligence', | ||
'Wed Oct 26 2016 11:31:26 GMT+0000 (UTC)', | ||
{ | ||
url: '/edit', | ||
title: 'Edit Latest Revision', | ||
}, | ||
'Approved', | ||
], | ||
[ | ||
'Cognitive Head Hunter', | ||
'Wed Oct 26 2016 18:42:40 GMT+0000 (UTC)', | ||
{ | ||
url: '/edit', | ||
title: 'Edit Latest Revision', | ||
}, | ||
'Needs Approval', | ||
], | ||
], | ||
}, | ||
}; |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
._style-guide { | ||
@include wrapper; | ||
|
||
&--title { | ||
@include h2; | ||
border-bottom: 2px solid color('grey', 20); | ||
} | ||
|
||
&--group { | ||
margin-bottom: setting-get('rhythm times four'); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% macro table(data) %} | ||
<table class="base--table"> | ||
{% if data.name %} | ||
<caption class="base--caption">{{data.name}}</caption> | ||
{% endif %} | ||
<thead class="base--thead"> | ||
<tr class="base--tr"> | ||
{% for header in data.headers %} | ||
<th class="base--th">{{header}}</th> | ||
{% endfor %} | ||
</tr> | ||
</thead> | ||
<tbody class="base--tbody"> | ||
{% for rows in data.body %} | ||
<tr class="base--tr"> | ||
{% for header in data.headers %} | ||
{% set row = rows[loop.index0] %} | ||
<td data-th="{{header}}" class="base--td">{% if row.url and row.title %}<a href="{{row.url}}" class="base--link">{{row.title}}</a>{% else %}{{row}}{% endif %}</td> | ||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endmacro %} |
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