update megamenu headers to reflect wireframe in #433
Merge remote-tracking branch 'eric/433-homepage-redesign' into 433-homepage-redesign
initial homepage redesign. uses featured_projects template tag as stand-in for featured items. includes some less and markup cleanup to adopt grid and more standardized styles as opposed to htmlburger markup/styling.
Merge pull request https://github.com/patternleaf/atlas/pull/21: Dynamic news items instead of hard-coded ones.
Style tweaks, link fixes for homepage redesign. WIP, addresses #433.
fix gap between megamenu and header display. squeezing this into the #433 branch, but addresses #540.
Do the status='published' check to FeaturedManager

All the models that use FeaturedManager inherit from PublishedModel and
we probably don't want unpublished items on the homepage.  So, it makes
sense to do this check here.
Merge branch 'develop' into 433-homepage-redesign
Refactor model attribute normalization for views

We normalize the attributes of Story and Project models to be featured on
the homepage, so the same template (storybase/featured_object.html) can
be used for all items.  Previously, this normalization was handled in
the template tag functions (featured_stories, featured_projects), but
that caused a lot of repeated code.  For the updated homepage layout (#433),
Story, NewsItem and Project items will all appear in the same box, so
handling the normalization in a template tag becomes even uglier.  I decided
to move the normalization into a ``normalize_for_view`` method of the
model class.  This encapsulates the logic and underlying model attributes
from the view/template tag code.
Create a single featured items list

The homepage redesign (#433) calls for a single featured items list that
includes stories, news items, and projects.  Previously these were handled
by the ``featured_news``, ``featured_stories`` and ``featured_projects``
template tags.  These have been replaced by the ``featured_items`` tag
in the ``storybase_featured`` tag library.  In the future, if one wants to
break out a list of a particular type of featured items, the
``featured_items`` template tag takes an optional third argument which is
an iterable of objects to be displayed.

To show a list of featured stories, do something like this:

In the view code:

    context = {
        ...
        stories = Story.on_homepage.all(),
        ...
    }

In the template code:

    {% load storybase_featured %}

    <!-- Show 2 featured stories with a featured image widht of 334 -->
    {% featured_items 2 334 stories %}
Merge branch 'develop' into 433-homepage-redesign

Conflicts:
	static/css/style.css
	static/less/homepage.less
Override flexslider left/right nav arrows z-index on homepage so that that they do not obscure the megamenu.
Change tabs to spaces in homepage.less. No changes to content.
Promote h5 titles in featured_object to h3 -- reads better; seems semantically more appropriate. Tweak spacing between image and text in featured_object (on homepage, anyway; might want to move those styles elsewhere to make them globally applicable).
Merge branch 'develop' into 433-homepage-redesign
Merge remote-tracking branch 'eric/433-homepage-redesign' into 433-homepage-redesign
Show item type in featured item list

List the type of item (Story, News or Project) for items shown in the
featured box on the homepage.

I also cleaned up the line height and margins of the item titles.

Closes #575
Wire in latest stories, projects and organizations

On the homepage, wire in latest stories, projects and organizations lists
at the bottom of the homepage template.

I created 3 new template tags to do this: latest_stories,
latest_organizations and latest_projects.

The heavy lifting is done by storybase.utils.latest_context and the
storybase/latest_objects.html template.

I chose 100px for the thumbnail width, because that's the narrowest
thumbnail size offered by Flickr, our most frequent oEmbed provider. To
accomodate this, I added 100px-wide default images as well.

Closes #575, Addresses #433