aboutsummaryrefslogtreecommitdiffhomepage
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/error.jade8
-rw-r--r--views/footer.jade3
-rw-r--r--views/header.jade1
-rw-r--r--views/index.jade24
-rw-r--r--views/layout.jade19
-rw-r--r--views/panel.jade13
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 @@
1extends layout
2
3block 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 @@
1footer
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 @@
1extends layout
2
3block 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 @@
1doctype html
2html
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 @@
1menu(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