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

Update design [WIP] #303

Merged
merged 96 commits into from
Jul 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
4ea636d
inital attempts at new design
Jun 20, 2016
b5b287d
Ignore .sass-cache
Jun 20, 2016
5344ba7
Update more things, include libraries
Jun 21, 2016
2f54aef
Add custom plugin for including blog entries
Jun 21, 2016
0459809
Use bower to track depencies
Jun 22, 2016
3f0de35
Add feedparser requirement
Jun 22, 2016
9e66e14
Use sass for templating, not less
Jun 22, 2016
a53a012
Add Gemfile to install sass
Jun 22, 2016
b762789
Remove all mentions of node
Jun 22, 2016
f737f2a
use pytho's libsass not ruby's sass
Jun 22, 2016
0d1aeef
Install bower depencies on heroku
Jun 22, 2016
57dd10e
Add bower as depency to package.json
Jun 22, 2016
bda2be2
do not keep bower install packages in git
Jun 22, 2016
837374b
Update scss files
Jun 22, 2016
6483802
Inlcude mmenu
Jun 22, 2016
e95529f
Properly ignore static/vendor/
Jun 22, 2016
fffb220
npm install with travis
Jun 22, 2016
80e09ac
Update install insturctions
Jun 22, 2016
ded697f
Add webfontloader
Jun 22, 2016
5f3a68b
Link to correct webfontloader file
Jun 22, 2016
65eb871
Remove vendorized jquery, jquery-lettering
Jun 22, 2016
bf447bf
remove less files
Jun 22, 2016
0c10103
Properly set path for glyphicons
Jun 22, 2016
025f01a
Add travis notification for slack
Jun 22, 2016
e0a7aab
Conditonall show different navigation menu
Jun 22, 2016
ff09669
Use new banner style
Jun 23, 2016
18de1a5
Remove djangocms_pagebanner extension
Jun 23, 2016
a6ad5e2
Chng comment from sass to less
Jun 23, 2016
abfbfa2
ths mss ltrs
Jun 23, 2016
c2bad8d
Add team page, update sidebar navigation
Jun 24, 2016
3800bd4
Add email field, show twitter, homepage
Jun 24, 2016
38645c4
Add skip email option, remove duplicate
Jun 24, 2016
e8aa04c
Use https for twitter links ins tests
Jun 24, 2016
bbe0e23
Update mailing list html
Jun 24, 2016
869a1f3
Add home banner content
Jun 24, 2016
70618a7
Show menu two levels deep
Jun 24, 2016
2a56475
Apply the new design to more pages
Jun 24, 2016
50fa466
Apply new design to networkgroup pages
Jun 24, 2016
0c98e13
Update css to latest website-mockups version
Jun 27, 2016
6a3d6c9
User typekit instead of google fonts
Jun 27, 2016
a98a0c8
Restore bootstrap glyphicons
Jun 27, 2016
bc1d75c
Use bower version of mmenu css, not cdnjs
Jun 27, 2016
5c1f7bb
Apply new style to 404 & search page
Jun 27, 2016
5b5772d
Only show nowdoing for people that have `username_on_slack` set
Jun 27, 2016
a14953b
Proper check for nowdoing
Jun 27, 2016
07d1cbc
Style theme-details
Jun 27, 2016
696dd77
Log to console
Jun 27, 2016
3c89257
Style more pages
Jun 27, 2016
7cb5bfb
Remove template `if` from javascript block
Jun 27, 2016
e084368
Use js to check if mmenu should make navigation
Jun 27, 2016
34d0f52
Revert "Log to console"
Jun 27, 2016
627bae5
Merge branch 'master' into design-update
Jun 28, 2016
6e4257d
Merge branch 'master' into design-update
Jun 28, 2016
27d3d6a
Properly display doing_type
Jul 1, 2016
f78de63
Update csp allowed sources
Jul 1, 2016
dcdfd58
Allow loadings style from typekit, reindent
Jul 1, 2016
31f4d38
Whitelist gravatar
Jul 1, 2016
8f4fe35
Allow typekit ping images
Jul 1, 2016
ed4cb81
pep8 compliable indentation
Jul 1, 2016
eb05ab0
Let editors search for people in admin interface
Jul 1, 2016
cb4638f
Preselect latest status update
Jul 1, 2016
c22901d
Merge branch 'master' into design-update
Jul 1, 2016
d780447
Change migration order to reflect new merged status
Jul 1, 2016
46850eb
Add secure.gravatar.com to allowed domains
Jul 1, 2016
d1a3073
Add test for new NowDoing functions
Jul 1, 2016
83b1a2e
update advisory board template
Jul 1, 2016
a757994
update advisory board template
Jul 1, 2016
37ce469
Check if there is any nowdoing to show
Jul 1, 2016
f6f542c
Enable possibility to filter people by email address
Jul 1, 2016
92dca6f
Apply new design to project list, project details
Jul 4, 2016
a46f80f
Set href for header social and donate links
Jul 4, 2016
fa7f0c9
Remove all custom body css classes
Jul 4, 2016
24351cd
Always show sidebar navigation
Jul 4, 2016
ee8b4ac
Add links to features from homepage
Jul 4, 2016
403ec25
Move custom sidebar below navigation
Jul 5, 2016
34b8984
Resize the navbar after click
Jul 5, 2016
d7c6dd5
Drop fixed height on nav
Jul 5, 2016
fe7a067
Only hide navigation on mobile, not sidebar
Jul 5, 2016
45ed239
Remove newsletter signup
Jul 5, 2016
1fd7b13
Update scss, use two columns everywhere
Jul 6, 2016
5768bad
Update project page
Jul 6, 2016
c4da6e1
Update icons
Jul 6, 2016
b8b1bec
replace forgotten occurrences of mailinglist_url
Jul 6, 2016
5395d6e
Add `old_project` boolean to `Project`
Jul 6, 2016
a3929f9
Properly include images
Jul 6, 2016
91d7ec0
Link to project homepage from image
Jul 6, 2016
19b35f7
Show old and current projects in navigation
Jul 6, 2016
6752ea3
Add featured new plugin
Jul 7, 2016
d0b98a0
Add updated help text for order in networkgroup
Jul 7, 2016
36e6e80
Add dropdown to top navigation
Jul 7, 2016
d2bf263
Remove local groups from navigation
Jul 7, 2016
86bcc9c
Style top navigation dropdown above carousel pagers
Jul 7, 2016
43ab91d
Load default image if no gravatar available
Jul 7, 2016
bac3a9b
Only load images through gravatar
Jul 7, 2016
a6198d1
Load 132px resolution images from gravatar
Jul 7, 2016
0a52c85
Unconfigure hover on project page
Jul 7, 2016
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
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "static/vendor"
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.py[cod]
__pycache__
*~
.sass-cache/

# Installer logs
pip-log.txt
Expand All @@ -25,6 +26,9 @@ node_modules
media
staticfiles

# Packages installed by bower
static/vendor/

logfile

.projectile
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: python
python:
- 2.7
before_install:
- bin/setup_travis
install:
- npm install
- pip install -r requirements.dev.txt
- pip install coveralls
script:
Expand All @@ -15,3 +14,6 @@ matrix:
allow_failures:
- python: 3.3
- python: pypy
notifications:
slack:
secure: D2UrTxFolji0qnKvRMqnearuRqdsu9IAdLzOd3d/jOIVtzc2Nqmzd70s2sWLx4rtX/vKbeqEpz1yf738GR48hZhKIy07ySB/hi7u2TelafPzAmaZ+k0jUzWsfACVKpkF77IjSgQ29orUDNUuac2Hc8Wo+niYS3cqVwRprZKmkrs=
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ You must have the following installed:

- Python 2.7
- libmemcached (`brew install libmemcached` on Mac OS X using [Homebrew](http://brew.sh/))
- node

You may also wish to follow any install instructions inside a Python virtual environment. Explaining `virtualenv` is outside of the scope of this README, but [this tutorial might help](http://hackercodex.com/guide/python-development-environment-on-mac-osx/).

## Running in development

pip install -r requirements.dev.txt
pip install honcho
npm install -g less
npm install
python manage.py migrate
honcho -f Procfile.dev start

Expand All @@ -40,6 +41,3 @@ will work. These will be documented in due course.
...
git push heroku master
heroku run python manage.py migrate

## TODO

27 changes: 0 additions & 27 deletions bin/install_nodejs

This file was deleted.

10 changes: 0 additions & 10 deletions bin/post_compile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ echo "-----> In post-compile hook"
# compile phase. See: https://github.com/heroku/heroku-buildpack-python/issues/57
export MEMCACHE_SERVERS='' MEMCACHIER_SERVERS=''

if [ -f bin/install_nodejs ]; then
echo "-----> Installing node"
chmod +x bin/install_nodejs
bin/install_nodejs

echo "-----> Installing less"
npm install -g less --quiet 2>&1 | indent
fi

MANAGE_FILE=$(find . -maxdepth 3 -type f -name 'manage.py' | head -1)
MANAGE_FILE=${MANAGE_FILE:2}

Expand All @@ -38,7 +29,6 @@ if [ "$DJANGO_COMPRESS_OFFLINE" = "true" ]; then
# After running the compressor, I can now remove the assets directory and
# all the NPM packages.
rm -rf assets/
rm -rf .npm/
rm -rf .heroku/vendor/node/
fi

Expand Down
6 changes: 0 additions & 6 deletions bin/setup_travis

This file was deleted.

29 changes: 29 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "website",
"homepage": "https://github.com/okfn/website",
"authors": [
"Knut Hühne <knut@viderum.com>"
],
"description": "",
"main": "",
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"bootstrap": "^3.3.6",
"jquery": "^3.0.0",
"jQuery.dotdotdot": "jquery-dotdotdot#^1.8.1",
"letteringjs": "^0.7.0",
"jQuery.mmenu": "^5.6.5",
"bootstrap-sass": "^3.3.6"
},
"resolutions": {
"jquery": "1.9.1 - 2"
}
}
27 changes: 27 additions & 0 deletions foundation/blogfeed/cms_plugins.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cms.models.pluginmodel import CMSPlugin
from django.utils.translation import ugettext_lazy as _
import feedparser


class FeedDisplayPlugin(CMSPluginBase):
model = CMSPlugin
render_template = "hello_plugin.html"
cache = False
module = "OKF"
name = _("Latest Blogposts")

def _get_three_articles(self):
feed_url = 'https://blog.okfn.org/feed/'
feed = feedparser.parse(feed_url)
return feed.entries[:3]

def render(self, context, instance, placeholder):
context = super(FeedDisplayPlugin, self)\
.render(context, instance, placeholder)

context['entries'] = self._get_three_articles()
return context

plugin_pool.register_plugin(FeedDisplayPlugin)
11 changes: 11 additions & 0 deletions foundation/blogfeed/templates/hello_plugin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div>
{% for entry in entries %}
<article>
<img class="avatar" src="https://secure.gravatar.com/avatar/nosuchavatar?size=160" alt="{{entry.author}}" />
<h4><a href='{{entry.link}}'>{{entry.title}}</a></h4>
<p>
{{entry.summary}}
</p>
</article>
{% endfor %}
</div>
10 changes: 0 additions & 10 deletions foundation/djangocms_pagebanner/admin.py

This file was deleted.

56 changes: 0 additions & 56 deletions foundation/djangocms_pagebanner/cms_toolbar.py

This file was deleted.

28 changes: 0 additions & 28 deletions foundation/djangocms_pagebanner/migrations/0001_initial.py

This file was deleted.

18 changes: 0 additions & 18 deletions foundation/djangocms_pagebanner/models.py

This file was deleted.

11 changes: 11 additions & 0 deletions foundation/features/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from django.contrib import admin

import reversion

from models import Feature


class FeatureAdmin(reversion.admin.VersionAdmin):
list_display = ('title', )

admin.site.register(Feature, FeatureAdmin)
23 changes: 23 additions & 0 deletions foundation/features/cms_plugins.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cms.models.pluginmodel import CMSPlugin
from django.utils.translation import ugettext_lazy as _

from models import Feature


class FeaturePlugin(CMSPluginBase):
model = CMSPlugin
render_template = "feature_plugin.html"
cache = True
module = "OKF"
name = _("Featured News")

def render(self, context, instance, placeholder):
context = super(FeaturePlugin, self)\
.render(context, instance, placeholder)

context['feature_list'] = Feature.objects.all()
return context

plugin_pool.register_plugin(FeaturePlugin)
29 changes: 29 additions & 0 deletions foundation/features/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
]

operations = [
migrations.CreateModel(
name='Feature',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('title', models.CharField(max_length=100)),
('text', models.CharField(max_length=200)),
('image', models.ImageField(upload_to=b'features/images')),
('link', models.URLField(blank=True)),
],
options={
'ordering': ['title'],
'verbose_name_plural': 'features',
},
),
]
Empty file.
19 changes: 19 additions & 0 deletions foundation/features/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from django.db import models


class Feature(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)

title = models.CharField(max_length=100)
text = models.CharField(max_length=200)
image = models.ImageField(upload_to='features/images',
blank=False)
link = models.URLField(blank=True)

def __unicode__(self):
return self.title

class Meta:
ordering = ["title"]
verbose_name_plural = "features"
Loading