Merge branch 'patternleaf-front-page-changes-2012-12-07' into release
Don't show "Publish" button

Don't show the "Publish" button for a story that has never been published.

In order to detect this case, a never_published property was added to the
PublishedModel class.

This commit also adds some unit tests for the AccountStoriesView to check
the logic for displaying different publication changing buttons.

Closes #460, which was re-opened because of the loophole that allowed users
to bypasss the publication flow in the builder by clicking the "Publish"
button in the stories listing.  See this URL for details:

https://github.com/PitonFoundation/atlas/issues/460#issuecomment-11342637
Merge branch '460-unpublish_from_stories_list' into develop

Conflicts:
	apps/storybase_user/tests/__init__.py
Add link to public profile page

Adds a link to the currently logged-in user's public profile page in the
sidebar of pages in the "My Account" section and in the megamenu
"My Account" dropdown menu.

Addresses #461
Add 150px wide default images

@jwirfs-brock asked for smaller user profile images.  Based on the list of
image sizes in Geoff Thomas' original designs (these are listed in #282), the next smallest size down from 222px appears to be 150px. There were not
yet default images of these sizes available, so I added them.

Addresses #461
User smaller images for user profile page

@jwirfs-brock commented that the profile image was too large, mainly because
it pushed the user's stories below the fold.  I switched from a 335px-wide
image to a 150px-wide one.

Addresses #461
Add a message explaining profile image setting

Add a message on the user profile page explaining how the profile image is
set, shown only for logged-in users when viewing their own profile page.

In the future, it might be nice to style this message so it looks different
than normal content text. I've created an issue for the general need for
alert styles as #543.

Addresses #461
Make "View Public Profile" link a button

As per @bpawlak's comment (https://github.com/PitonFoundation/atlas/issues/461#issuecomment-11452601),
make the link a button to try to differentiate it from the subnav links.

Addresses #461
Update tests to reflect smaller default images

Now that there is a smaller default image option, 150x90px, the tests needed
to be updated to reflect this.
Show link to public profile link

As per @bpawlak's suggestion at https://github.com/PitonFoundation/atlas/issues/461#issuecomment-11453441,
show the public profile link at the top of the account information page.

This also seemed like a better place to display the note about how the
profile image is selected, so I moved that message out of the public profile
template and into the template for the account summary.

Addresses #461
Merge branch '461-user_profile' into develop
Better default value

If no default image is found, None seems like a better return value than 0.
Clear short profile images

In the account summary view template, wrap the public profile section
content in a grid_10 div.  This is needed to clear the profile image
when the shorter default image is used.  Without the container div, the
next section's content is floated to the left of the text.

Addresses #461
Merge branch '461-user_profile' into develop
Update tour popup arrow position

It looks like a style tweak actually breaks things. I probably had stale
CSS when I was looking at it before.
Merge branch '415-ie_builder_tour_popup' into develop
Show embed widget height attribute in default code

By specifying a ``data-height`` attribute on the link in a story's embed
code, the user can control the height of the IFRAME element that is
ultimately rendered by the widget JavaScript. This was a previously
undocumented feature. The ultimate way of helping users control the height
of their widget will be to create a view that lets the user fill out a
form that will change different properties of the embed code and to
preview what the widget will look like with those attributes set.  For now,
however, showing the default value of the ``data-height`` attribute will
give early adopters a hint that they can adjust this value to change the
height of the embedded widget.

Addresses #529
Merge branch '529-story_embed_height' into develop
Remove reference to openness

We haven't implemented the idea of an "open" project yet, so don't refer
to it in the introduction to the "create a project' form.

Addresses #463
Make description a required field

When creating projects and organizations, the description field should be
required.