carte-server 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carte/client/views/card.cjsx +1 -1
- data/lib/carte/client/views/list.cjsx +6 -6
- data/lib/carte/client/views/pagination.cjsx +5 -5
- data/lib/carte/server/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f6b43e925dea02cd986b8267fd5bf77d8ff88ef
|
4
|
+
data.tar.gz: df37f4fd415e613d6ae5af207c9db1f620c9e049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5db00e8726f2a0a85986436437d857b9698d9ca92fa11c912bde8accaaff01dc7397b05d6a7c8dc6ae35c8ab431ae1a9c1edd863055158ddb3997b92b14dcd86
|
7
|
+
data.tar.gz: 06100017a72c998eafd854b558273c6b7b533170a7180163edff5105542a023878c62893db087a64f123c55ee252ec92880a400573ecb251e92742dd6a5040a0
|
@@ -58,7 +58,7 @@ module.exports = React.createClass
|
|
58
58
|
{
|
59
59
|
if @props.card.get("tags")
|
60
60
|
@props.card.get("tags").map (tag)->
|
61
|
-
<span className="pull-right tools"> <a href={"
|
61
|
+
<span className="pull-right tools"> <a href={"#/?tags=" + tag}><i className="glyphicon glyphicon-tag" /> {tag}</a></span>
|
62
62
|
}
|
63
63
|
</div>
|
64
64
|
</div>
|
@@ -47,13 +47,13 @@ module.exports = React.createClass
|
|
47
47
|
<div className="row">
|
48
48
|
<div className="col-sm-6" style={{padding:"0px"}}>
|
49
49
|
<ul className="nav nav-pills">
|
50
|
-
<li><a href={"
|
51
|
-
<li><a href={"
|
52
|
-
<li><a href={"
|
50
|
+
<li><a href={"#/?" + @atozParam()} style={{padding:'6px 12px',fontWeight: if @props.cards.query.sort == 'title' and @props.cards.query.order != 'random' then 'bold' else 'normal'}}>A to Z</a></li>
|
51
|
+
<li><a href={"#/?" + @latestParam()} style={{padding:'6px 12px',fontWeight: if @props.cards.query.sort == 'updated_at' and @props.cards.query.order != 'random' then 'bold' else 'normal'}}>Latest</a></li>
|
52
|
+
<li><a href={"#/?" + @randomParam()} style={{padding:'6px 12px',fontWeight: if @props.cards.query.order == 'random' then 'bold' else 'normal'}}>Random</a></li>
|
53
53
|
{
|
54
54
|
if @props.cards.query.tags
|
55
55
|
@props.cards.query.tags.split(',').map (tag)=>
|
56
|
-
<li><a href={"
|
56
|
+
<li><a href={"#/?" + @tagParam(tag)} style={padding:'6px 12px'}><i className="glyphicon glyphicon-tag" /> {tag}</a></li>
|
57
57
|
}
|
58
58
|
</ul>
|
59
59
|
</div>
|
@@ -64,7 +64,7 @@ module.exports = React.createClass
|
|
64
64
|
<li>
|
65
65
|
{
|
66
66
|
if @props.cards.page
|
67
|
-
<a href={"
|
67
|
+
<a href={"#/?" + @randomParam()} style={{padding:'6px 12px'}}>
|
68
68
|
<i className="glyphicon glyphicon-refresh" />
|
69
69
|
</a>
|
70
70
|
else
|
@@ -83,7 +83,7 @@ module.exports = React.createClass
|
|
83
83
|
<div className="row">
|
84
84
|
<div className="col-sm-12" style={{padding:"0px"}}>
|
85
85
|
<ul className="nav nav-pills">
|
86
|
-
<li><a href={"
|
86
|
+
<li><a href={"#/" + @props.card.get('title')} style={fontWeight:'bold'}>{@props.card.get('title')}</a></li>
|
87
87
|
</ul>
|
88
88
|
</div>
|
89
89
|
</div>
|
@@ -16,9 +16,9 @@ module.exports = React.createClass
|
|
16
16
|
{
|
17
17
|
if @props.cards.page
|
18
18
|
if @props.cards.page.current > 1
|
19
|
-
href = "
|
19
|
+
href = "#/?" + @pageParam(@props.cards.page.current - 1)
|
20
20
|
else
|
21
|
-
href = "
|
21
|
+
href = "#/?" + @pageParam(@props.cards.page.total)
|
22
22
|
else
|
23
23
|
href = "javascript:void(0)"
|
24
24
|
<a href={href} aria-label="Previous" style={{padding:'6px 12px'}}>
|
@@ -29,7 +29,7 @@ module.exports = React.createClass
|
|
29
29
|
<li style={width:'4.0em',textAlign:'center'}>
|
30
30
|
{
|
31
31
|
if @props.cards.page
|
32
|
-
<a href={"
|
32
|
+
<a href={"#/?" + @pageParam(@props.cards.page.current)} style={{padding:'6px 12px'}}>
|
33
33
|
{@props.cards.page.current} / {@props.cards.page.total}
|
34
34
|
</a>
|
35
35
|
else
|
@@ -42,9 +42,9 @@ module.exports = React.createClass
|
|
42
42
|
{
|
43
43
|
if @props.cards.page
|
44
44
|
if @props.cards.page.current < @props.cards.page.total
|
45
|
-
href = "
|
45
|
+
href = "#/?" + @pageParam(@props.cards.page.current + 1)
|
46
46
|
else
|
47
|
-
href = "
|
47
|
+
href = "#/?" + @pageParam(1)
|
48
48
|
else
|
49
49
|
href = "javascript:void(0)"
|
50
50
|
<a href={href} aria-label="Next" style={{padding:'6px 12px'}}>
|
data/lib/carte/server/version.rb
CHANGED
data/package.json
CHANGED