diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2015-06-09 17:41:40 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2015-10-29 23:14:54 +0100 |
commit | 8c308c2bf7f658945d80be9d5880361238635f5b (patch) | |
tree | 2130ae60af58e59dab3df07a5d5cdd5174f91ae8 /views | |
parent | 8cb4b4e00ee57eb98dfe1455b6d2de36fc561797 (diff) | |
download | PeerTube-8c308c2bf7f658945d80be9d5880361238635f5b.tar.gz PeerTube-8c308c2bf7f658945d80be9d5880361238635f5b.tar.zst PeerTube-8c308c2bf7f658945d80be9d5880361238635f5b.zip |
Spawn
Diffstat (limited to 'views')
-rw-r--r-- | views/error.jade | 8 | ||||
-rw-r--r-- | views/footer.jade | 3 | ||||
-rw-r--r-- | views/header.jade | 1 | ||||
-rw-r--r-- | views/index.jade | 24 | ||||
-rw-r--r-- | views/layout.jade | 19 | ||||
-rw-r--r-- | views/panel.jade | 13 |
6 files changed, 68 insertions, 0 deletions
diff --git a/views/error.jade b/views/error.jade new file mode 100644 index 000000000..d9e8a7893 --- /dev/null +++ b/views/error.jade | |||
@@ -0,0 +1,8 @@ | |||
1 | extends layout | ||
2 | |||
3 | block content | ||
4 | h1= message | ||
5 | if error | ||
6 | h2= error.status | ||
7 | pre #{error.stack} | ||
8 | |||
diff --git a/views/footer.jade b/views/footer.jade new file mode 100644 index 000000000..7fd9769b6 --- /dev/null +++ b/views/footer.jade | |||
@@ -0,0 +1,3 @@ | |||
1 | footer | ||
2 | |||
3 | | PeTube, CopyLeft 2015 \ No newline at end of file | ||
diff --git a/views/header.jade b/views/header.jade new file mode 100644 index 000000000..d8a39898e --- /dev/null +++ b/views/header.jade | |||
@@ -0,0 +1 @@ | |||
\ No newline at end of file | |||
diff --git a/views/index.jade b/views/index.jade new file mode 100644 index 000000000..70f19e9fa --- /dev/null +++ b/views/index.jade | |||
@@ -0,0 +1,24 @@ | |||
1 | extends layout | ||
2 | |||
3 | block content | ||
4 | |||
5 | div(class='container') | ||
6 | |||
7 | header(class='row') | ||
8 | div(class='col-md-2') | ||
9 | h4 PeopleTube | ||
10 | |||
11 | div(class='col-md-8') | ||
12 | input(type='text' id='search_video' name='search_video' class='form-control' placeholder='Search a video...') | ||
13 | |||
14 | div(class='row') | ||
15 | include panel | ||
16 | |||
17 | div(id='ajax_load' class='col-md-9') | ||
18 | |||
19 | |||
20 | include footer | ||
21 | |||
22 | // build:js /javascripts/global.min.js | ||
23 | script(src='/javascripts/bundle.js') | ||
24 | // endbuild \ No newline at end of file | ||
diff --git a/views/layout.jade b/views/layout.jade new file mode 100644 index 000000000..6195ab341 --- /dev/null +++ b/views/layout.jade | |||
@@ -0,0 +1,19 @@ | |||
1 | doctype html | ||
2 | html | ||
3 | head | ||
4 | link(rel='icon' type='image/png' href='/images/favicon.png') | ||
5 | |||
6 | title= title | ||
7 | |||
8 | // build:css /stylesheets/global.min.css | ||
9 | each file in [ 'index' ] | ||
10 | link(rel='stylesheet', href='/stylesheets/' + file + '.css') | ||
11 | // endbuild | ||
12 | |||
13 | // build:css /stylesheets/vendor/global.min.css | ||
14 | each file in [ 'bootstrap.min' ] | ||
15 | link(rel='stylesheet', href='/stylesheets/vendor/css/' + file + '.css') | ||
16 | // endbuild | ||
17 | |||
18 | body | ||
19 | block content \ No newline at end of file | ||
diff --git a/views/panel.jade b/views/panel.jade new file mode 100644 index 000000000..cec83a9e1 --- /dev/null +++ b/views/panel.jade | |||
@@ -0,0 +1,13 @@ | |||
1 | menu(class='col-md-2') | ||
2 | |||
3 | div(id='panel_get_videos' class='panel_button') | ||
4 | span(class='glyphicon glyphicon-list') | ||
5 | | Get videos | ||
6 | |||
7 | div(id='panel_upload_video' class='panel_button') | ||
8 | span(class='glyphicon glyphicon-cloud-upload') | ||
9 | | Upload a video | ||
10 | |||
11 | div(id='panel_make_friends' class='panel_button') | ||
12 | span(class='glyphicon glyphicon-magnet') | ||
13 | | Make friends \ No newline at end of file | ||