Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
2cb0eea9
Commit
2cb0eea9
authored
Oct 16, 2016
by
Daniel W Bond
Browse files
changes related to template readability and indenting
parent
f51c7124
Changes
5
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/templates/list_majors.html
View file @
2cb0eea9
...
...
@@ -31,12 +31,14 @@
{% regroup majors by first_letter as majors_by_letter %}
<div
class=
"row"
>
<div
class=
"col-md-10 col-md-offset-1 text-center"
><h3>
<div
class=
"col-md-10 col-md-offset-1 text-center"
>
<h3>
·
{% for letter in majors_by_letter %}
<a
href=
"#{{ letter.grouper }}"
>
{{ letter.grouper }}
</a>
·
{% endfor %}
</h3></div>
</h3>
</div>
</div>
<div
class=
"row"
>
...
...
@@ -46,20 +48,19 @@
<div
class=
"row"
>
{% for major in letter.list %}
<div
class=
"col-md-6 text-center"
>
{% if major.name|length > 39 %}
<a
href=
"{{ major.get_absolute_url }}"
class=
"btn btn-primary btn-lg btn-block"
>
{% if major.name|length > 39 %}
<small>
{{ major.name }}
</small></a>
{% else %}
<a
href=
"{{ major.get_absolute_url }}"
class=
"btn btn-primary btn-lg btn-block"
>
{% else %}
{{ major.name }}
{% endif %}
</a>
{% endif %}
</div>
{% if forloop.counter|divisibleby:2 %}
</div>
<br
/>
<div
class=
"row"
>
{% endif %}
</div>
<br
/>
<div
class=
"row"
>
{% endif %}
{% endfor %}
</div>
<br
/>
...
...
roomlist/housing/templates/detail_floor.html
View file @
2cb0eea9
...
...
@@ -47,15 +47,19 @@
<div
class=
"row"
>
<div
class=
"col-md-8 col-md-offset-2"
>
<div
class=
"alert alert-info text-center"
><strong><em>
{% if notOnFloor %}
You don't live on this floor. Depending on individual privacy settings, not all students may be displayed.
{% elif notInBuilding %}
You don't live in this building. Depending on individual privacy settings, not all students may be displayed.
{% else %}
Don't see someone you know who lives here? Tell them about SRCT Roomlist!
{% endif %}
</em></strong></div>
<div
class=
"alert alert-info text-center"
>
<p><strong><em>
{% if notOnFloor %}
You don't live on this floor.
Depending on individual privacy settings, not all students may be displayed.
{% elif notInBuilding %}
You don't live in this building.
Depending on individual privacy settings, not all students may be displayed.
{% else %}
Don't see someone you know who lives here? Tell them about SRCT Roomlist!
{% endif %}
</em></strong></p>
</div>
</div>
</div>
...
...
roomlist/housing/templates/detail_room.html
View file @
2cb0eea9
...
...
@@ -47,15 +47,19 @@
<div
class=
"row"
>
<div
class=
"col-md-8 col-md-offset-2"
>
<div
class=
"alert alert-info text-center"
><strong><em>
{% if notOnFloor %}
You don't live on this floor. Depending on individual privacy settings, not all students may be displayed.
{% elif notInBuilding %}
You don't live in this building. Depending on individual privacy settings, not all students may be displayed.
{% else %}
Don't see one of your roommates? Tell them about SRCT Roomlist!
{% endif %}
</em></strong></div>
<div
class=
"alert alert-info text-center"
>
<p><strong><em>
{% if notOnFloor %}
You don't live on this floor.
Depending on individual privacy settings, not all students may be displayed.
{% elif notInBuilding %}
You don't live in this building.
Depending on individual privacy settings, not all students may be displayed.
{% else %}
Don't see one of your roommates? Tell them about SRCT Roomlist!
{% endif %}
</em></strong></p>
</div>
</div>
</div>
...
...
roomlist/housing/templates/list_buildings.html
View file @
2cb0eea9
...
...
@@ -40,7 +40,9 @@
<div
class=
"row"
>
{% for building in buildings %}
<div
class=
"col-sm-3 text-center"
>
<a
href=
"{{ building.get_absolute_url }}"
class=
"btn btn-primary btn-lg btn-block"
>
{{ building.name }}
</a>
<a
href=
"{{ building.get_absolute_url }}"
class=
"btn btn-primary btn-lg btn-block"
>
{{ building.name }}
</a>
</div>
{% if forloop.counter|divisibleby:4 %}
</div>
...
...
roomlist/templates/layouts/footer.html
View file @
2cb0eea9
...
...
@@ -3,34 +3,32 @@
<hr>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-6"
>
Email the developers:
<a
href=
"mailto:roomlist@lists.srct.gmu.edu"
>
roomlist@lists.srct.gmu.edu
</a>
<br
/>
<a
href=
"{% url 'about' %}"
target=
"_blank"
>
About
</a>
·
<a
href=
"{% url 'privacy' %}"
target=
"_blank"
>
Privacy
</a>
·
<a
href=
"http://srct.gmu.edu/documents/usage_policy"
target=
"_blank"
>
Terms of Service
</a>
·
<a
href=
"http://srct.gmu.edu/contact/"
target=
"_blank"
>
Contact
</a>
</div>
<div
class=
"col-md-6"
>
<span
class=
"pull-right"
>
A
<a
href=
"http://srct.gmu.edu/projects"
target=
"_blank"
>
project
</a>
of
<a
href=
"http://www.gmu.edu/"
target=
"_blank"
>
Mason
</a>
<a
href=
"http://srct.gmu.edu/"
target=
"_blank"
><strong>
SRCT
</strong></a>
, a
<a
href=
"https://getconnected.gmu.edu/organization/srct"
target=
"_blank"
>
registered student org
</a>
.
</span>
<br
/>
<span
class=
"pull-right"
>
Read and
<a
href=
"https://git.gmu.edu//srct/roomlist/milestones/"
target=
"_blank"
>
contribute
</a>
to our
<a
href=
"https://www.gnu.org/licenses/quick-guide-gplv3.html"
target=
"_blank"
>
freely-licensed
</a>
<a
href=
"http://git.gmu.edu/srct/roomlist/"
target=
"_blank"
>
source code
</a>
.
</p>
</span>
</div>
<div
class=
"col-md-6"
>
Email the developers:
<a
href=
"mailto:roomlist@lists.srct.gmu.edu"
>
roomlist@lists.srct.gmu.edu
</a>
<br
/>
<a
href=
"{% url 'about' %}"
target=
"_blank"
>
About
</a>
·
<a
href=
"{% url 'privacy' %}"
target=
"_blank"
>
Privacy
</a>
·
<a
href=
"http://srct.gmu.edu/documents/usage_policy"
target=
"_blank"
>
Terms of Service
</a>
·
<a
href=
"http://srct.gmu.edu/contact/"
target=
"_blank"
>
Contact
</a>
</div>
<div
class=
"col-md-6"
>
<span
class=
"pull-right"
>
A
<a
href=
"http://srct.gmu.edu/projects"
target=
"_blank"
>
project
</a>
of
<a
href=
"http://www.gmu.edu/"
target=
"_blank"
>
Mason
</a>
<a
href=
"http://srct.gmu.edu/"
target=
"_blank"
><strong>
SRCT
</strong></a>
, a
<a
href=
"https://getconnected.gmu.edu/organization/srct"
target=
"_blank"
>
registered student org
</a>
.
</span>
<br
/>
<span
class=
"pull-right"
>
Read and
<a
href=
"https://git.gmu.edu//srct/roomlist/milestones/"
target=
"_blank"
>
contribute
</a>
to our
<a
href=
"https://www.gnu.org/licenses/quick-guide-gplv3.html"
target=
"_blank"
>
freely-licensed
</a>
<a
href=
"http://git.gmu.edu/srct/roomlist/"
target=
"_blank"
>
source code
</a>
.
</p>
</span>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment