-
Notifications
You must be signed in to change notification settings - Fork 351
Port templates in core to Django templating syntax #1494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4911a08
Port templates in core to django templating syntax
Nehemiah60 155d3d0
Port templates in core to django templating syntax
Nehemiah60 98fb90d
Port templates in core to django templating syntax
Nehemiah60 bc4c1a9
Port templates in core to django templating syntax
Nehemiah60 1622bce
Port templates in core to django templating syntax
Nehemiah60 51f03eb
Port templates in core to django templating syntax
Nehemiah60 2a55488
Port templates in core to django templating syntax
Nehemiah60 c3359ae
Port templates in core to django templating syntax
Nehemiah60 4cd458f
Port templates in core to django templating syntax
Nehemiah60 5c4d502
Template porting
Nehemiah60 4db1ff8
Template porting
Nehemiah60 ac3a41b
Template porting
Nehemiah60 6f969c9
Template porting
Nehemiah60 fb7e2d1
Edited the base html file in templates
Nehemiah60 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,14 +1,15 @@ | ||||||
| {% extends "base.html" %} | ||||||
| {% load static %} | ||||||
| {% load i18n %} | ||||||
| {% block content %} | ||||||
|
|
||||||
| {% block extra_css %} | ||||||
| <link type="text/css" rel="stylesheet/less" href="{% static "less/about.less" %}"/> | ||||||
| <link type="text/css" rel="stylesheet/less" href="{% static " less/about.less" %}" /> | ||||||
| {% endblock extra_css %} | ||||||
|
|
||||||
| {% block page_title %}{% trans "About Us" %}{% endblock page_title %} | ||||||
|
|
||||||
| {% block backbone_template %} | ||||||
|
|
||||||
|
||||||
| {% block content %} |
brylie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
brylie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 18 additions & 18 deletions
36
project/core/templates/partials/notifications/notification_base.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,21 @@ | ||
| {% verbatim %} | ||
| {{# if (notification.length > 0) { }} | ||
| {% block content %} | ||
brylie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| {% if notification.length > 0 %} | ||
| <div class="container"> | ||
| <div class="section"> | ||
| {% for notifications in notification %} | ||
| <div class="col s12"> | ||
| <li>{{notifications}}</li> | ||
| </div> | ||
| {% endfor %} | ||
| </div> | ||
| </div> | ||
| {% else %} | ||
| <div class="section no-state"> | ||
| <div class="container"> | ||
| <div class="section"> | ||
| {{# _.each(notification, function (n) { }} | ||
| <div class="col s12"> | ||
| {{= cw.underscorePartial('notification-item-template', n)}} | ||
| </div> | ||
| {{# }, this); }} | ||
| </div> | ||
| </div> | ||
| {{# } else { }} | ||
| <div class="section no-state"> | ||
| <div class="container"> | ||
| <div class="section"> | ||
| <div class="center title-lato grey-text">NO NOTIFICATIONS</div> | ||
| </div> | ||
| </div> | ||
| <div class="center title-lato grey-text">NO NOTIFICATIONS</div> | ||
| </div> | ||
| {{# } }} | ||
| {% endverbatim %} | ||
| </div> | ||
| </div> | ||
| {% endif %} | ||
| {% endblock content %} | ||
brylie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
brylie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
8 changes: 4 additions & 4 deletions
8
project/core/templates/partials/notifications/notification_item.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| {% verbatim %} | ||
| {% block content %} | ||
brylie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <div class="notification-item"> | ||
| <span class="link-lato gray-text">{{time}}</span> | ||
| <span class="header-lato">{{ popup_string }}</span> | ||
| {{# if (link) { }} | ||
| {%if link%} | ||
| <a href="{{ link }}" class="link-lato">LINK</a> | ||
| {{# } }} | ||
| {%endif%} | ||
| </div> | ||
| {% endverbatim %} | ||
| {% endblock content%} | ||
brylie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
brylie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this block definition to line 12, after the page_title block