Skip to content

Commit eee3dad

Browse files
author
Ilya Radchenko
committed
Merge pull request #708 from knownasilya/view-cleanup
Fix #700, and cleanup registration, index, forgot
2 parents ce61228 + 67ecb4a commit eee3dad

File tree

4 files changed

+20
-24
lines changed

4 files changed

+20
-24
lines changed

client/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ var $navbar = $('.navbar');
1111
$navbar.find('li').removeClass('active');
1212
$navbar.find('a[href="' + global.location.pathname + '"]')
1313
.parent().addClass('active');
14+
$('#layout-header').hide();
15+
$('#invite-box').height($('#signup-box').height());
1416

1517
// Third party
1618
require('ui-bootstrap');

lib/views/forgot.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{% extends "base.html" %}
22

33
{% block bodyContent %}
4-
<div class="row-fluid">
5-
<div class="span12">
6-
{% for message in messages %}
7-
<div class="alert alert-warning">{{ message|raw }}</div>
8-
{% endfor %}
4+
{% if messages.length %}
5+
<div class="row-fluid">
6+
<div class="span12">
7+
{% for message in messages %}
8+
<div class="alert alert-warning">{{ message|raw }}</div>
9+
{% endfor %}
10+
</div>
911
</div>
10-
</div>
12+
{% endif %}
1113

1214
<div class="row-fluid">
1315
<div class="span12">

lib/views/index.html

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,26 @@
1818
</span>
1919
</div>
2020
</div>
21+
2122
{% for messages in flash %}
2223
{% for message in messages %}
23-
<div class="alert alert-info">{{ message|raw }}</div>
24+
<div class="alert alert-info">{{ message|raw }}</div>
2425
{% endfor %}
2526
{% endfor %}
27+
2628
<div id="dashboard" style="display:none">
2729
<div>
2830
<div class="row-fluid">
2931
<div class="span12 dashboard-section">
3032
{% if !currentUser %}
31-
<div class='StriderBlock_LoggedOutFillContent'>{% pluginblock LoggedOutFillContent %}
32-
{% include "partials/errors.html" %}
33-
{% include "partials/loginform.html" %}
34-
{% endpluginblock %}</div>
35-
36-
<script>
37-
$(document).ready(function() {
38-
$('#layout-header').hide();
39-
$('#invite-box').height($('#signup-box').height());
40-
});
41-
</script>
42-
33+
<div class='StriderBlock_LoggedOutFillContent'>
34+
{% pluginblock LoggedOutFillContent %}
35+
{% include "partials/errors.html" %}
36+
{% include "partials/loginform.html" %}
37+
{% endpluginblock %}
38+
</div>
4339
{% endif %}
40+
4441
{% if currentUser && jobs.yours.length < 1 %}
4542
<div class="alert alert-info no-projects" data-test="no-personal-projects">
4643
<h3>You don't have any projects configured.</h3>

lib/views/partials/signupform.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<div class="row-fluid">
2-
<!-- hack since offsetN doesn't work with first element -->
3-
<div class="span2">
4-
&nbsp;
5-
</div>
6-
72
<div class="span8">
83
<div class="well">
94
<h3>Brilliant Continuous Deployment.</h3>

0 commit comments

Comments
 (0)