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
1 parent
e54d358
commit 2784b5b
Showing
3 changed files
with
55 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,54 @@ | ||
<template lang="jade"> | ||
div#admin-clas-view.container | ||
h1 CLAs | ||
|
||
table.table.table-striped.table-bordered.table-condensed#clas | ||
tbody | ||
tr | ||
th Name | ||
th Email | ||
th GitHub Username | ||
th Created | ||
tr(v-for="cla in clas") | ||
td {{cla.name}} | ||
td {{cla.email}} | ||
td {{cla.githubUsername}} | ||
td {{dateFormat(cla.created)}} | ||
</template> | ||
|
||
<script lang="coffee"> | ||
co = require('co') | ||
api = require 'core/api' | ||
CLAsComponent = { | ||
data: -> | ||
clas: [] | ||
methods: | ||
dateFormat: (s) -> moment(s).format('llll') | ||
created: co.wrap -> | ||
clas = yield api.clas.getAll() | ||
clas = _.sortBy(clas, (cla) -> (cla.githubUsername || 'zzzzzz').toLowerCase()) | ||
clas = _.uniq(clas, true, 'githubUsername') | ||
@clas = clas | ||
} | ||
`export default CLAsComponent` | ||
</script> | ||
|
||
<style lang="sass"> | ||
@import "app/styles/bootstrap/variables" | ||
#admin-clas-view | ||
background-color: white | ||
padding: 50px 0 200px | ||
table | ||
font-size: 11px | ||
hr | ||
border: 1px solid black | ||
</style> |
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