Codrspace / codrspace

The blogging platform for coders.
http://codrspace.com
Other
35 stars 13 forks source link

Draft posts are ordered strangely on user 'homepage' #37

Closed durden closed 12 years ago

durden commented 12 years ago

When viewing my own posts (logged in) the most recent 'published' posts are at the top. I had a 'draft' that was newer than my published posts as far as time goes, but it was at the very bottom of my 'homepage.'

Maybe we should make it more clear how draft posts are ordered for logged in users on their own page of posts. There are a few options that I can think of:

  1. Just list all posts by time and clearly show what is a post or a draft (the colored boxes next to a post title help with this).
  2. Have a separate link to see all draft posts ordered by time by themselves without the published ones cluttering it up.

The goal here again is to easily find a draft post and/or a published post and make the ordering obvious to the user.

glenbot commented 12 years ago

I know why this happens. The query has to order by publish_dt or it wouldn't make sense, however, draft posts publish_dt field is set to NULL because it hasen't been published yet. We could do the following:

If you have any other ideas let me know.

durden commented 12 years ago

I vote for one of the following:

Thoughts? I'm not really married to either of the ideas. I'm not too sure I even like the 'My homepage.' Maybe it should be 'My Published Posts' or something, but then parity is lost with the 'My Drafts' link.

durden commented 12 years ago

I'm going to vote on option #2 from above 'My Posts' with sub links for 'Published' and 'Drafts'. I'll take care of this unless you have better ideas.

glenbot commented 12 years ago

ok sounds good

durden commented 12 years ago

So that commit is the first attempt. It just makes 'My Posts' a dropdown for 'Published' and 'Drafts'. The 'homepage' for a user (codrspace.com// now only shows published links regardless of whether you are logged in or not.

glenbot commented 12 years ago

cool. thanks.

glenbot commented 12 years ago

I couldn't find a way to get to your posts page ex. codrspace.com/glenbot/ .. When you click the my posts link it shows the dropdown. Did you add a link somwhere else?

durden commented 12 years ago

I didn't add a link for that. It's now see published or drafts when your logged in. I wasn't sure if we needed this link anymore or if it should be the codrspace log, etc. Maybe another link in the 'My Posts' dropdown should be 'homepage' or something. I would like to have a link for that, just not sure where now.

glenbot commented 12 years ago

Im going to consider this closed.