Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit e7f4772

Browse files
committed
Simplify some structure for better responsiveness
1 parent 2a98653 commit e7f4772

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

views/default/user.html

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,26 @@
2424

2525
<div class="row rsheading">
2626
{{ if settings.academy_mode: }}
27-
<!-- Carousel
28-
================================================== -->
2927
<link href="/{{=request.application}}/static/css/carousel.css" rel="stylesheet">
3028
{{ if (not auth.user): }}
31-
<div class="carousel slide col-md-6" data-ride="carousel" id="myCarousel">
29+
<div class="col-md-6 col-sm-6" data-ride="carousel" id="myCarousel">
3230
{{else: }}
33-
<div class="carousel slide col-md-12" data-ride="carousel" id="myCarousel" style="margin-bottom: 50px;">
31+
<div class="col-md-12" data-ride="carousel" id="myCarousel" style="margin-bottom: 50px;">
3432
{{ pass }}
35-
<div class="col-md-4 col-md-offset-2" style="text-align: center;">
36-
<img src="/static/images/logo_small.png" width="400" style="margin: auto; max-width: 100%" alt="Runestone Logo" >
33+
<div class="col-md-8 col-md-offset-2" style="text-align: center;">
34+
<img src="/static/images/logo_small.png" width="300" style="margin: auto; display:block; max-width: 100%" alt="Runestone Logo" >
35+
</div>
3736
</div>
38-
</div><!-- /.carousel -->
3937
{{ if 'static' in request.env.query_string:}}
4038
<p>It appears you are trying to get to a class for which you must log in. If you have already registered, please login below. Otherwise you can <a href="{{=URL(f='user/register')}}">Register</a> here.</p>
4139
{{pass}}
4240
{{pass}}
4341
<!-- LOGIN -->
4442
{{if not settings.lti_only_mode:}}
4543
{{ if not auth.user or request.args(0) == 'impersonate': }}
46-
<h4 class="col-md-4 col-md-offset-1 col-sm-offset-1 col-xs-offset-1">{{=T( request.args(0).replace('_',' ').capitalize() )}}</h4>
4744
{{ pass }}
4845
{{ if request.args(0) == 'login' and not auth.user: }}
49-
<div id="web2py_user_form" class="col-md-4 col-md-offset-1 col-sm-offset-1 col-xs-offset-1">
46+
<div id="web2py_user_form" class="col-md-4 col-sm-4 col-md-offset-1 col-sm-offset-1 col-xs-offset-1">
5047
<form class="form-horizontal" method="post">
5148
{{if not session.auth_two_factor_user:}}
5249
<div class="form-group">
@@ -76,7 +73,13 @@ <h4 class="col-md-4 col-md-offset-1 col-sm-offset-1 col-xs-offset-1">{{=T( reque
7673
</div>
7774
<div class="form-group">
7875
<div class="col-sm-offset-2 col-sm-4">
79-
<button type="submit" class="btn btn-default" id="login_button">Login</button>
76+
<button type="submit" class="btn btn-primary" id="login_button">Login</button><br/>
77+
{{if not 'request_reset_password' in auth.settings.actions_disabled:}}
78+
<a class="btn btn-xs btn-default" href="{{=URL(args='request_reset_password')}}"
79+
role="button">{{=T('Lost Password')}}</a>
80+
<a class="btn btn-xs btn-default" href="{{=URL(args='retrieve_username')}}"
81+
role="button">{{=T('Forgot Username')}}</a>
82+
{{pass}}
8083
</div>
8184
</div>
8285
{{else:}}
@@ -95,13 +98,8 @@ <h4 class="col-md-4 col-md-offset-1 col-sm-offset-1 col-xs-offset-1">{{=T( reque
9598
{{pass}}
9699
{{=form.custom.end}}
97100
<!-- Must use this to get all the good defaults for the form -->
98-
<div id='auth-actions' style="margin-left: 20px;" class="col-md-4 col-sm-4 col-xs-4">
99-
{{if not 'request_reset_password' in auth.settings.actions_disabled:}}
100-
<a class="btn btn-sm btn-primary" href="{{=URL(args='request_reset_password')}}"
101-
role="button">{{=T('Lost Password')}}</a>
102-
<a class="btn btn-sm btn-primary" href="{{=URL(args='retrieve_username')}}"
103-
role="button">{{=T('Forgot Username')}}</a>
104-
{{pass}}
101+
<div id='auth-actions' style="margin-left: 20px;" class="col-md-2 col-sm-2 col-xs-2">
102+
<!-- pw reset goes here -->
105103
</div>
106104
</div>
107105
{{pass}}

0 commit comments

Comments
 (0)