simpled code in index.html
This commit is contained in:
@@ -304,3 +304,4 @@ header {
|
|||||||
main {padding-bottom: 50px;}
|
main {padding-bottom: 50px;}
|
||||||
.nav a, .btn, .btn-default {text-shadow: none; font-weight: bold;}
|
.nav a, .btn, .btn-default {text-shadow: none; font-weight: bold;}
|
||||||
footer {padding:50px; background: #333; color: #aaa;}
|
footer {padding:50px; background: #333; color: #aaa;}
|
||||||
|
#w2padmin-btn {margin:30px 0 30px 0;}
|
||||||
|
|||||||
+8
-3
File diff suppressed because one or more lines are too long
+4
-4
File diff suppressed because one or more lines are too long
@@ -1,26 +1,20 @@
|
|||||||
{{left_sidebar_enabled,right_sidebar_enabled=False,('message' in globals())}}
|
{{left_sidebar_enabled,right_sidebar_enabled=False,('message' in globals())}}
|
||||||
{{extend 'layout.html'}}
|
{{extend 'layout.html'}}
|
||||||
|
|
||||||
{{block head}}
|
|
||||||
<style>
|
|
||||||
#w2padmin-btn {margin:30px 0 30px 0;}
|
|
||||||
</style>
|
|
||||||
{{end head}}
|
|
||||||
|
|
||||||
{{if 'message' in globals():}}
|
{{if 'message' in globals():}}
|
||||||
<h2>{{=message}}</h2>
|
<h2>{{=message}}</h2>
|
||||||
<p class="lead">{{=T('How did you get here?')}}</p>
|
<p class="lead">{{=T('How did you get here?')}}</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>{{=T('You are successfully running web2py')}}</li>
|
<li>{{=T('You are successfully running web2py')}}</li>
|
||||||
<li>{{=XML(T('You visited the url %s', A(request.env.path_info,_href=request.env.path_info)))}}</li>
|
<li>{{=XML(T('You visited the url %s', A(request.env.path_info,_href=request.env.path_info)))}}</li>
|
||||||
<li>{{=XML(T('Which called the function %s located in the file %s',
|
<li>{{=XML(T('Which called the function %s located in the file %s',
|
||||||
(A(request.function+'()',_href='#'),
|
(A(request.function+'()',_href='#'),
|
||||||
A('web2py/applications/%(application)s/controllers/%(controller)s.py'%request,
|
A('web2py/applications/%(application)s/controllers/%(controller)s.py' % request,
|
||||||
_href=URL('admin','default','peek', args=(request.application,'controllers',request.controller+'.py'))))))}}</li>
|
_href=URL('admin','default','peek', args=(request.application,'controllers',request.controller+'.py'))))))}}</li>
|
||||||
<li>{{=XML(T('The output of the file is a dictionary that was rendered by the view %s',
|
<li>{{=XML(T('The output of the file is a dictionary that was rendered by the view %s',
|
||||||
A('web2py/applications/%(application)s/views/%(controller)s/index.html'%request,
|
A('web2py/applications/%(application)s/views/%(controller)s/index.html' % request,
|
||||||
_href=URL('admin','default','peek',args=(request.application,'views',request.controller,'index.html')))))}}</li>
|
_href=URL('admin','default','peek',args=(request.application,'views',request.controller,'index.html')))))}}</li>
|
||||||
<li>{{=T('You can modify this application and adapt it to your needs')}}</li>
|
<li>{{=T('You can modify this application and adapt it to your needs')}}</li>
|
||||||
</ol>
|
</ol>
|
||||||
{{elif 'content' in globals():}}
|
{{elif 'content' in globals():}}
|
||||||
{{=content}}
|
{{=content}}
|
||||||
@@ -29,22 +23,18 @@
|
|||||||
{{pass}}
|
{{pass}}
|
||||||
|
|
||||||
{{block right_sidebar}}
|
{{block right_sidebar}}
|
||||||
<button id="w2padmin-btn" class="btn btn-primary btn-lg btn-block">
|
<a id="w2padmin-btn" class="btn btn-primary btn-lg btn-block"
|
||||||
<i class="glyphicon glyphicon-cog"></i> {{=T("admin")}}</button>
|
href="{{=URL('admin','default','index')}}">
|
||||||
|
<i class="glyphicon glyphicon-cog"></i>
|
||||||
|
{{=T("admin")}}
|
||||||
|
</a>
|
||||||
<div class="panel panel-info">
|
<div class="panel panel-info">
|
||||||
<div class="panel-heading">{{=T("Don't know what to do?")}}</div>
|
<div class="panel-heading">{{=T("Don't know what to do?")}}</div>
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<li class="list-group-item">{{=A(T("Online examples"), _href=URL('examples','default','index'))}}</li>
|
<li class="list-group-item">{{=A(T("Online examples"), _href=URL('examples','default','index'))}}</li>
|
||||||
<li class="list-group-item"><a href="http://web2py.com">web2py.com</a></li>
|
<li class="list-group-item"><a href="http://web2py.com">web2py.com</a></li>
|
||||||
<li class="list-group-item"><a href="http://web2py.com/book">{{=T('Documentation')}}</a></li>
|
<li class="list-group-item"><a href="http://web2py.com/book">{{=T('Documentation')}}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{block page_js}}
|
|
||||||
<script>
|
|
||||||
$('#w2padmin-btn').click(function() {
|
|
||||||
window.location = "{{=URL('admin','default','index')}}";
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{{end}}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user