forked from Jill-Chen/rating-app
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:maxbbn/rating-app
- Loading branch information
Showing
17 changed files
with
387 additions
and
86 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
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,9 +1,22 @@ | ||
// Focus states | ||
a { | ||
color:#3399CC; | ||
&:hover { | ||
color: #2e89b6; | ||
} | ||
} | ||
a:focus { | ||
outline: thin dotted; | ||
} | ||
// Hover & Active | ||
a:hover, | ||
a:active { | ||
outline: 0; | ||
} | ||
|
||
.topbar div > ul, .nav { | ||
.active > a { | ||
background-color: #1d648e; | ||
background-color: rgba(27,94,134,.5); | ||
} | ||
.menu-dropdown,.dropdown-menu { | ||
background-color:#123e58; | ||
} | ||
} |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
KISSY.add('rate/tags',function(S){ | ||
var $ = S.all; | ||
|
||
var temp = S.one('#temp-tags')[0].innerHTML; | ||
var tagsTmpl = new S.Template(temp); | ||
|
||
S.io({ | ||
url : '/json/tags', | ||
dataType : 'json', | ||
type : 'get', | ||
success : function(data){ | ||
$('#tags .bd').html(tagsTmpl.render(data)); | ||
} | ||
}); | ||
}); |
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 @@ | ||
h1 page not found! |
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 @@ | ||
div= error |
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,29 @@ | ||
script | ||
KISSY.use('rate/app',function(S,App){ | ||
App.nav('home'); | ||
}); | ||
|
||
script#temp-tags(type='kissy/template') | ||
|<ul class='tags'> | ||
| {{#each tags as tag}} | ||
| <li><a href='/list?tags={{tag}}'>{{tag}}</a></li> | ||
| {{/each}} | ||
|</ul> | ||
|
||
div.box | ||
.hd | ||
h3 分享会 | ||
.bd!= partial('partial/links') | ||
.box | ||
.hd | ||
h3 常用链接 | ||
.bd | ||
ul.links | ||
li | ||
a(href='https://is.taobao.org/meeting/') 会议室预定 | ||
div#tags.box | ||
.hd | ||
h3 标签 | ||
.bd | ||
script | ||
KISSY.use('rate/home'); |
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,57 @@ | ||
!!! 5 | ||
html | ||
head | ||
title= title | ||
link(rel='stylesheet/less', href='/css/share.less') | ||
script(src='/lib/less/1.1.3/less.min.js') | ||
meta(name='viewport',content='width=device-width, initial-scale = 1.0, user-scalable = no') | ||
-if(typeof css !== "undefined" ) | ||
-if(css=="rate") | ||
link(rel='stylesheet', href='/stylesheets/rate2.css') | ||
script(src='http://a.tbcdn.cn/s/kissy/1.2.0/kissy-min.js') | ||
script(src=''); | ||
script(src='/js/template-pkg-min.js') | ||
script | ||
KISSY.config({ | ||
packages : [{ | ||
name : 'rate', | ||
path : '/js' | ||
}] | ||
}); | ||
KISSY.Config.debug = true; | ||
script | ||
KISSY.use('rate/app'); | ||
body | ||
div.topbar(data-dropdown='dropdown') | ||
div.topbar-inner | ||
.container | ||
h3 | ||
a.brand(href='/') 分享平台 | ||
ul.nav | ||
li(id='nav-home') | ||
a(href="/") 首页 | ||
li(id='nav-setlist') | ||
a(href="/shareset/") 分享会 | ||
li(id='nav-list') | ||
a(href="/share") 分享 | ||
li#nav-create | ||
a(href='/shareset/new') 组织分享 | ||
ul.nav.secondary-nav | ||
- if(!everyauth.loggedIn) | ||
li.dropdown | ||
a.dropdown-toggle(href='/login') 未登录 | ||
ul.dropdown-menu | ||
li | ||
a(href='/login') 登录 | ||
li | ||
a(href='/register') 注册 | ||
- else | ||
li.dropdown | ||
a.dropdown-toggle(href='#')= user.login | ||
ul.dropdown-menu | ||
li | ||
a(href='/logout') 退出 | ||
div#main.container!= body | ||
div.footer | ||
script(src="/lib/jquery/1.6.4/jquery.min.js") | ||
script(src="/bootstrap/js/bootstrap-dropdown.js") |
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,5 @@ | ||
ul.links | ||
li | ||
a(href="/list/?tag=firebird") 火鸟分享 | ||
li | ||
a(href="/list/?tag=firebird") STS分享分享会 |
Oops, something went wrong.