The Update text on the topic page was having issues now that I enabled editing. So this had to be reworked heavily and now it will correctly display if the article was lasted edited or a reply was last edited or added.
Datetime has taken a great improvement, I added a extension method for the date format which takes a date and returns one of the following types of examples. Idea was to show a nice "Today" type example or to only display what is needed. E.g. year is only displayed if its was over a year old.
- Minutes ago
- Today at 12:03am
- Yesterday at 12:03am
- 2 Feb at 12:03am
- 2 Feb 09 at 12:03am
Finally the text break issue has been solved with the use of extension method like above but this case for string object. So I simply apply a "ReplaceBreaks" option to string that is to be displayed on the page, Else if its going in a textbox leave it as normal with blackslash n's to create the breaks in textboxes.
Latest thing done late tonight was I started to redesign the browse page looking to add a number of sections such as New Portfolios, Latest Portfolios, New Images, New Videos and more. This will be the basic way of browsing the website as well as there will be a search implemented hopefully if there is time!
No comments:
Post a Comment