Skip to content
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

Django template refactor #1831

Merged
merged 36 commits into from
Dec 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2244c19
Update to the latest geonode 2.8.x commit.
Coop56 Oct 23, 2018
1dbcc2a
Remove geonode as an INSTALLED_APP as geonode has itself listed in IN…
Coop56 Oct 24, 2018
41c8f67
Fix broken tests, skip one thumbnail test for now.
Coop56 Oct 24, 2018
a463b79
Update layer_detail page to match the new geonode version plus mapsto…
Coop56 Oct 25, 2018
577bd84
Resolve errors on layer and story detail pages. Turn off story thumb…
Coop56 Oct 25, 2018
db76585
Update celery settings based on changes in geonode 2.8.x.
Coop56 Oct 25, 2018
b203fc5
Update branch to angular-1.6.5 for django-osgeo-importer submodule.
Coop56 Oct 25, 2018
850a1be
Merge branch 'master' into geonode-2-8-x-latest
Coop56 Nov 14, 2018
1e6aaed
Pull in the latest geonode 2.8.x changes.
Coop56 Nov 14, 2018
8e7d2ed
Bumps django-maploom, resolves tag naming conflicts.
Coop56 Nov 14, 2018
d9700b2
Sets the bbox for all of the thumbnail tests that use add_mapstory.
Coop56 Nov 14, 2018
4f2515b
Fixes some formatting / linter issues in the test_storylayer_thumbnai…
Coop56 Nov 14, 2018
c5de674
Merge branch 'master' into geonode-2-8-x-latest
Coop56 Nov 19, 2018
3cb2890
Resolve an issue where an empty style array could cause thumbnail gen…
Coop56 Nov 19, 2018
e4be361
Resolve an issue where the journal templates would error out from unu…
Coop56 Nov 19, 2018
f23805f
Resolve some issues CodeFactor surfaced around using built ins as var…
Coop56 Nov 20, 2018
30a0767
Modify site_base and geonode_base to ensure that we are properly inhe…
Coop56 Nov 20, 2018
69f9e71
WIP. Remove all of the old layer templates, start with the basic geo…
Coop56 Nov 26, 2018
2370906
Replace Geonode map with iframe.
trepagnier Nov 26, 2018
55d5548
Update add layer button.
trepagnier Nov 26, 2018
c93ca08
Hide geonode sidebar functionality in the layer detail template that …
Coop56 Nov 26, 2018
cb27255
Add back the geonode edit layer modal, hide some functionality in it …
Coop56 Nov 26, 2018
639cb35
Update grunt, karma and site_scripts files to remove unnecessary depe…
Coop56 Nov 27, 2018
30c6443
Add back custom geogig templates.
Coop56 Nov 27, 2018
fef4999
WIP. Working on moving towards using geonode search page.
Coop56 Nov 27, 2018
1b03eb5
Revert "WIP. Working on moving towards using geonode search page."
Coop56 Nov 28, 2018
4647a51
Update and fix the icons template to use the new base templates.
Coop56 Nov 28, 2018
d64b2c8
Update errors templates to use geonode_base.html instead of site_base…
Coop56 Nov 28, 2018
22a0ccd
Fix map detail and organization templates.
trepagnier Nov 29, 2018
d4c820a
Merge branch 'django-template-refactor' of https://github.com/MapStor…
trepagnier Nov 29, 2018
37554e7
Replace site_base.html with geonode_base.html in several templates an…
Coop56 Nov 29, 2018
6946a2e
Update the user_messages div CSS to put it at the top of the page bet…
Coop56 Nov 30, 2018
bbd4c55
Merge branch 'master' into django-template-refactor
Coop56 Dec 3, 2018
e25ff0c
Merge branch 'master' into django-template-refactor
Coop56 Dec 10, 2018
12ef569
Update button CSS; add script tags around social links.
Coop56 Dec 10, 2018
80bbeaa
Update travis.yml to fix BlockingIOError on Travis builds.
Coop56 Dec 10, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ addons:
tunnel_domains: docker

before_install:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
- echo "Travis PR repo $TRAVIS_PULL_REQUEST_SLUG";
echo "Travis PR branch $TRAVIS_PULL_REQUEST_BRANCH";
echo "Travis target repo $TRAVIS_REPO_SLUG";
Expand Down
2 changes: 0 additions & 2 deletions mapstory/static/gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ module.exports = function(grunt) {
vendor:{
files: {
'mapstory/js/dist/vendor-assets-min.js':[
'vendor/jquery/dist/jquery.min.js',
'vendor/bootstrap/dist/js/bootstrap.min.js',
'vendor/angular/angular.min.js',
'vendor/angular-animate/angular-animate.min.js',
'vendor/angular-aria/angular-aria.min.js',
Expand Down
1 change: 0 additions & 1 deletion mapstory/static/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = function(config) {
browsers: ['PhantomJS'],
files: [
// angular source
'vendor/jquery/dist/jquery.min.js',
'vendor/angular/angular.js',
'vendor/angular-animate/angular-animate.min.js',
'vendor/angular-aria/angular-aria.min.js',
Expand Down
7 changes: 7 additions & 0 deletions mapstory/static/style/site/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,10 @@ form {
.inbox-avatar img {
max-height: 30px;
}

div#user_messages {
position: relative;
width: inherit;
margin-top: inherit;
right: inherit;
}
9 changes: 9 additions & 0 deletions mapstory/static/style/themes/orange/site.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
// overwrite / customize any of the site/variables.less rules you'd like to only change for this theme here:
//
//
.btn {
background-color: #f5f5f5;
border-color: #f5f5f5;
color: #999
}

.btn:hover {
background-color: @primary
}
@import '../../site/site.less';
2 changes: 1 addition & 1 deletion mapstory/templates/403.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "site_base.html" %}
{% extends "geonode_base.html" %}

{% load i18n %}

Expand Down
2 changes: 1 addition & 1 deletion mapstory/templates/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "site_base.html" %}
{% extends "geonode_base.html" %}

{% load i18n %}

Expand Down
2 changes: 1 addition & 1 deletion mapstory/templates/500.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "site_base.html" %}
{% extends "geonode_base.html" %}

{% load i18n %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ <h4>Pulling latest GeoGig data.</h4>
</div>
</div>
</div>
{% endverbatim %}
{% endverbatim %}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
repoURL: '{% geogig_repo_url resource %}'
});
module.requires.push('geogig');

moment.locale('en', {
calendar: {
lastDay: '[yesterday at] LT',
Expand Down
3 changes: 0 additions & 3 deletions mapstory/templates/_site_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
</script>

<script src="{{ STATIC_URL }}mapstory/js/dist/vendor-assets-min.js"></script>
<script src="{{ STATIC_URL }}lib/js/moment-with-locales.min.js"></script>

<script src="{{ STATIC_URL }}mapstory/js/dist/mapstory.js"></script>

<!-- Script for animating navigation submenus -->
Expand Down Expand Up @@ -80,7 +78,6 @@
</script>

{% include "osgeo_importer/_importer_scripts.html" %}
{% include 'autocomplete_light/static.html' %}
{% include "favorite/_favorite_js.html" %}

<script src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
Expand Down
5 changes: 4 additions & 1 deletion mapstory/templates/geonode_base.html
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{% extends "site_base.html" %}
{% extends "site_base.html" %}

{% load i18n %}
{% load staticfiles %}
5 changes: 1 addition & 4 deletions mapstory/templates/icons/icon_upload.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{% extends "site_base.html" %}

{% block extra_head %}
{% endblock %}
{% extends "geonode_base.html" %}

{% block middle %}
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion mapstory/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "site_base.html" %}
{% extends "geonode_base.html" %}
{% load i18n %}

{% block middle %}
Expand Down
216 changes: 0 additions & 216 deletions mapstory/templates/layers/_details.html

This file was deleted.

28 changes: 0 additions & 28 deletions mapstory/templates/layers/_download_modal.html

This file was deleted.

Loading