1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
2
< html xmlns ="http://www.w3.org/1999/xhtml " xml:lang ="en-US ">
3
- < head >
4
- < title > Qiita</ title >
5
- < link rel ="stylesheet " href ="/static/vendor/css/bootstrap.min.css " type ="text/css ">
6
- < link rel ="stylesheet " href ="/static/vendor/css/bootstrap-theme.min.css " type ="text/css ">
7
- < link rel ="stylesheet " href ="/static/css/style.css " type ="text/css ">
3
+ < head >
4
+ < title > Qiita</ title >
5
+ < link rel ="stylesheet " href ="/static/vendor/css/bootstrap.min.css " type ="text/css ">
6
+ < link rel ="stylesheet " href ="/static/vendor/css/bootstrap-theme.min.css " type ="text/css ">
7
+ < link rel ="stylesheet " href ="/static/css/style.css " type ="text/css ">
8
8
9
- < script src ="/static/vendor/js/jquery-2.1.0.min.js "> </ script >
10
- < script src ="/static/vendor/js/bootstrap.min.js "> </ script >
11
- < script src ="/static/vendor/js/dropdown.min.js "> </ script >
9
+ < script src ="/static/vendor/js/jquery-2.1.0.min.js "> </ script >
10
+ < script src ="/static/vendor/js/bootstrap.min.js "> </ script >
12
11
13
- {% block head %}{% end %}
14
- </ head >
15
- < body >
12
+ < link rel ="shortcut icon " href ="/static/img/favicon.ico ">
16
13
17
- < table width ='100% ' border ="0 " style ="background:#A7A9AC ">
18
- < tr style ="padding-top:3px; padding-bottom:3px; padding-right:3px; padding-left:3px; ">
19
- < td width ="15% "> < img src ="/static/img/logo.png "> </ td >
20
- < td width ="60% " style ="text-align:center; ">
21
- < nav >
22
- < ul >
23
- < li > < a href ="/ "> Home</ a > </ li >
24
- {% if user != '' %}
25
- < li >
26
- < a href ="/analysis/1 " target ="_parent "> Meta Analysis</ a >
27
- < ul >
28
- < li > < a href ="/analysis/1 " target ="_parent "> New Meta-Analysis</ a > </ li >
29
- < li > < a href ="/running/ " target ="_parent "> Running Meta-Analyses</ a > </ li >
30
- </ ul >
31
- </ li >
32
- <!--
33
- <li>
34
- <a href="" target="_parent">Tools</a>
35
- </li>
36
- -->
37
- {% end %}
38
- < li > < a href ="mailto:qiita.help@gmail.com " target ="_blank "> Help</ a > </ li >
39
- </ ul >
40
- </ nav >
41
- </ td >
42
- < td width ="45% " id ="study_info ">
43
- {% if user %}
44
- < div class ="nav navbar-nav navbar-right " style ="color: white; "> Welcome < a href ="/profile/ "> {{user}}</ a > | < a href ="/auth/logout/ "> Log Out</ a > </ div >
45
- {% else %}
46
- < div class ="nav ">
47
- {% try %}
48
- < span style ="color: red; "> {{loginerror}}</ span >
49
- {% except %}
50
- </ span >
51
- {% end %}
52
- < form class ="navbar-form " role ="form " action ="/auth/login/ " method ="post ">
53
- < table width ="100% ">
54
- < tr >
55
- < td >
56
- < div class ="form-group ">
57
- < input type ="text " id ="username " name ="username " placeholder ="Email " class ="form-control ">
14
+ {% block head %}{% end %}
15
+ </ head >
16
+ < body style ="padding-top: 65px; ">
17
+ < div class ="navbar navbar-inverse navbar-fixed-top " role ="navigation ">
18
+ < div class ="container ">
19
+ < div class ="navbar-header ">
20
+ <!-- button that appears if the window is re-sized to a smaller size -->
21
+ < button type ="button " class ="navbar-toggle " data-toggle ="collapse " data-target =".navbar-collapse ">
22
+ < span class ="sr-only "> Toggle navigation</ span >
23
+ < span class ="icon-bar "> </ span >
24
+ < span class ="icon-bar "> </ span >
25
+ < span class ="icon-bar "> </ span >
26
+ </ button >
58
27
</ div >
59
- </ td >
60
- < td >
61
- < div class ="form-group ">
62
- < input type ="password " id ="password " name ="password " placeholder ="Password " class ="form-control ">
63
- </ div >
64
- </ td >
65
- < td >
66
- < button type ="submit " class ="btn btn-success "> Sign in</ button >
67
- </ td >
68
- </ tr >
69
- </ table >
70
- </ form >
71
- < a href ="/auth/create/ "> New User</ a > | < a href ="/forgot/ "> Forgot Password</ a >
28
+
29
+ < div class ="navbar-collapse collapse ">
30
+ < ul class ="nav navbar-nav ">
31
+ < li >
32
+ <!-- qiita logo -->
33
+ < a class ="navbar-brand " rel ="home " href ="/ " title ="Qiita ">
34
+ < img style ="max-width:100px; margin-top: -7px; " src ="/static/img/logo-clear.png ">
35
+ </ a >
36
+ </ li >
37
+ <!-- meta-analysis menu -->
38
+ {% if user != '' %}
39
+ < li class ="dropdown ">
40
+ < a href ="/analysis/1 " data-toggle ="dropdown " class ="dropdown-toggle "> Meta Analysis< b class ="caret "> </ b > </ a >
41
+ < ul class ="dropdown-menu ">
42
+ < li > < a data-toggle ="modal " data-target ="#create-analysis-modal-view "> Create Meta Analysis</ a > </ li >
43
+ < li > < a href ="# "> See Running Analyses</ a > </ li >
44
+ < li > < a href ="# "> See Old Analyses</ a >
45
+ </ ul >
46
+ </ li >
47
+ {% end %}
48
+ <!-- generic elements -->
49
+ < li >
50
+ < a href ="# "> Help</ a >
51
+ </ li >
52
+ < li >
53
+ < a href ="http://github.com/biocore/qiita "> GitHub</ a >
54
+ </ li >
55
+ </ ul >
56
+ <!-- show user name and logout button if there's a user logged in -->
57
+ {% if user %}
58
+ < ul class ="nav navbar-nav pull-right ">
59
+ < li >
60
+ < a href ="/profile/ "> Welcome {{user}}</ a >
61
+ </ li >
62
+ < li class ="pull-right ">
63
+ < a href ="/auth/logout/ "> Log Out</ a >
64
+ </ li >
65
+ </ ul >
66
+ <!-- otherwise show the login form -->
67
+ {% else %}
68
+ {% try %}
69
+ < span style ="color: red; "> {{loginerror}}</ span >
70
+ {% except %}
71
+ </ span >
72
+ {% end %}
73
+ < form class ="navbar-form navbar-right " role ="form " action ="/auth/login/ " method ="post ">
74
+ < div class ="form-group ">
75
+ < input type ="text " id ="username " name ="username " placeholder ="Email " class ="form-control ">
76
+ </ div >
77
+ < div class ="form-group ">
78
+ < input type ="password " id ="password " name ="password " placeholder ="Password " class ="form-control ">
79
+ </ div >
80
+ < button type ="submit " class ="btn btn-success "> Sign in</ button >
81
+ </ form >
82
+ {% end %}
83
+ </ div > <!--/.navbar-collapse -->
72
84
</ div >
73
- {%end%}
74
- </ td >
75
- </ tr >
76
- </ table >
85
+ </ div > <!--/.main nav-bar -->
77
86
78
- < div id ="template-content ">
79
- {% block content %}{% end %}
80
- </ div >
87
+ <!-- all templates should override this portion to present their main content -->
88
+ < div id ="template-content " class ="container ">
89
+ {% block content %}{% end %}
90
+ </ div >
81
91
82
- < div id ="footer ">
83
- </ div >
92
+ <!-- modal view to enter analysis information -->
93
+ < div class ="modal fade " id ="create-analysis-modal-view " tabindex ="-1 " role ="dialog " aria-labelledby ="myModalLabel " aria-hidden ="true ">
94
+ < div class ="modal-dialog ">
95
+ < div class ="modal-content ">
96
+ < div class ="modal-header ">
97
+ < button type ="button " class ="close " data-dismiss ="modal " aria-hidden ="true "> ×</ button >
98
+ < h4 class ="modal-title " id ="myModalLabel "> Create new meta-analysis</ h4 >
99
+ </ div >
100
+ < form role ="form " action ="/analysis/2 " method ="post ">
101
+ < div class ="modal-body ">
102
+ < div >
103
+ < div class ="form-group ">
104
+ < label for ="name "> Analysis name</ label >
105
+ < input type ="text " class ="form-control " id ="name " name ="name " placeholder ="Analysis name ">
106
+ </ div >
107
+ < div class ="form-group ">
108
+ < label for ="description "> Description</ label >
109
+ < input type ="text " class ="form-control " id ="description " name ="description " placeholder ="Short description ">
110
+ </ div >
111
+ </ div >
112
+ </ div >
113
+ < div class ="modal-footer ">
114
+ < button type ="submit " class ="btn btn-primary "> Create analysis</ button >
115
+ </ div >
116
+ </ form >
117
+ </ div >
118
+ </ div >
119
+ </ div >
84
120
85
- </ body >
86
- </ html >
121
+ < div id ="footer ">
122
+ </ div >
123
+ </ body >
124
+ </ html >
0 commit comments