Nguyễn Thái Ngọc Duy [Mon, 28 Aug 2006 13:25:49 +0000 (28 20:25 +0700)]
Reduced User#is_guest?, User#is_admin?, User#is_mod? calls
Nguyễn Thái Ngọc Duy [Mon, 28 Aug 2006 13:09:11 +0000 (28 20:09 +0700)]
Reduced User#can_moderate? and Topic#can_reply? calls
Nguyễn Thái Ngọc Duy [Sat, 26 Aug 2006 09:29:42 +0000 (26 16:29 +0700)]
Removed Settings plugin, moved Settings model into app/models
Nguyễn Thái Ngọc Duy [Sat, 26 Aug 2006 04:46:31 +0000 (26 11:46 +0700)]
Reduced ApplicationController#current_user calls (by half with forum/view, might be more with views such as topic/view or user_profile/*)
Nguyễn Thái Ngọc Duy [Sat, 26 Aug 2006 04:19:47 +0000 (26 11:19 +0700)]
Reduced Time#now calls a bit (seven calls according to action_profiler)
Nguyễn Thái Ngọc Duy [Fri, 25 Aug 2006 10:25:29 +0000 (25 17:25 +0700)]
Show static 'Pages: 1' if there is only one page (so paginate_links shows nothing)
Nguyễn Thái Ngọc Duy [Fri, 25 Aug 2006 10:22:14 +0000 (25 17:22 +0700)]
Activate Ferret in SearchController.
Added DISTINCT to all id select queries.
Quoted forum_id
Nguyễn Thái Ngọc Duy [Fri, 25 Aug 2006 10:14:58 +0000 (25 17:14 +0700)]
Backed to acts_as_ferret stable branch (ferret 0.9.6)
Nguyễn Thái Ngọc Duy [Fri, 25 Aug 2006 03:17:13 +0000 (25 10:17 +0700)]
Plugged in svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin/acts_as_ferret r83
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:49:19 +0000 (24 17:49 +0700)]
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:41:12 +0000 (24 17:41 +0700)]
SearchController is in! Fulltext search and markread action is not functional yet
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:38:03 +0000 (24 17:38 +0700)]
Use Topic#set_close_status instead of Topic.update_all directly
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:37:37 +0000 (24 17:37 +0700)]
Make use of User#get_disp_topics
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:37:02 +0000 (24 17:37 +0700)]
Added SQL queries for search controller
Also moved update_all calls from moderator controller to topic model
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:34:49 +0000 (24 17:34 +0700)]
Use quote(true) instead of hardcoding value 1
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:33:18 +0000 (24 17:33 +0700)]
Cycle rowodd, roweven
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:30:58 +0000 (24 17:30 +0700)]
Corrected action user_posts
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:30:19 +0000 (24 17:30 +0700)]
Added ApplicationController#get_ident
Nguyễn Thái Ngọc Duy [Thu, 24 Aug 2006 10:29:32 +0000 (24 17:29 +0700)]
Corrected action search/user_posts (not show_user)
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 11:06:58 +0000 (23 18:06 +0700)]
Tired of Oxygen and Cornflower. Let's make full use of available themes
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 10:54:12 +0000 (23 17:54 +0700)]
Let ModeratorController in. Tests may come later
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 10:46:13 +0000 (23 17:46 +0700)]
Sort topics properly (stickies first, honor Forum#sort_by)
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 10:24:18 +0000 (23 17:24 +0700)]
Fixed views to prepare for the on-coming ModeratorController
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 09:45:19 +0000 (23 16:45 +0700)]
Display forum/view properly (icons, links...)
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 09:43:33 +0000 (23 16:43 +0700)]
topic closing indication
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 09:42:43 +0000 (23 16:42 +0700)]
Added User#get_disp_posts
Raise exception if there is no post to display (wrong page parameter)
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 09:42:03 +0000 (23 16:42 +0700)]
Added pseudo function Censoring.censor_words
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 08:41:29 +0000 (23 15:41 +0700)]
Textual changes
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 07:58:30 +0000 (23 14:58 +0700)]
Wrong SQL because I didn't write tests :(
There are actually differences between ON <condition> and WHERE <condition>
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 07:46:24 +0000 (23 14:46 +0700)]
Quickjump is back. forum/view/id will redirect to external url if it's a redirect forum
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 07:34:48 +0000 (23 14:34 +0700)]
Don't set forum_perms on administrators
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 07:32:13 +0000 (23 14:32 +0700)]
Let moderators and administrators view forums
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 06:10:20 +0000 (23 13:10 +0700)]
Adjust Forum#moderators if moderators' groups are changed or moderators are deleted
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 06:03:05 +0000 (23 13:03 +0700)]
Added Forum.remove_moderator, which remove a user as a moderator from all forums
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 05:26:13 +0000 (23 12:26 +0700)]
Show forum moderators
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 05:22:27 +0000 (23 12:22 +0700)]
Use Hash for Forum#moderators instead of Array to cache username
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 05:06:08 +0000 (23 12:06 +0700)]
Forum moderator is functional (non-forum moderators no longer have moderator privilege in forums they are not moderators)
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 04:19:28 +0000 (23 11:19 +0700)]
Moderator management
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 02:47:18 +0000 (23 09:47 +0700)]
Simple hack to hide admin menu
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 02:10:02 +0000 (23 09:10 +0700)]
Ban in action
Nguyễn Thái Ngọc Duy [Wed, 23 Aug 2006 01:47:10 +0000 (23 08:47 +0700)]
Ban functions
Nguyễn Thái Ngọc Duy [Tue, 22 Aug 2006 13:53:22 +0000 (22 20:53 +0700)]
Activated ban button in user_profile/admin
Nguyễn Thái Ngọc Duy [Tue, 22 Aug 2006 13:45:57 +0000 (22 20:45 +0700)]
Ban administration
Nguyễn Thái Ngọc Duy [Tue, 22 Aug 2006 13:25:19 +0000 (22 20:25 +0700)]
Ban model
Nguyễn Thái Ngọc Duy [Tue, 22 Aug 2006 09:27:34 +0000 (22 16:27 +0700)]
Another big bad commit with additional permission checks and coverage tests
AdminController#update_options was restructured. Added #update_permissions.
Splitted TopicController#view into view and find_topic.
Removed TopicController#post_valid?
Raise exceptions in stead of just set flash[:error] and redirect
Fixed some template errors encountered by tests
Most tests in this commit are coverage tests.
Added assert_form to check form action
Fixed fixtures/settings.yaml (empty maintenance_message)
Nguyễn Thái Ngọc Duy [Tue, 22 Aug 2006 03:54:49 +0000 (22 10:54 +0700)]
W3C markup validation fixes encountered by /admin/index test
Nguyễn Thái Ngọc Duy [Tue, 22 Aug 2006 03:45:36 +0000 (22 10:45 +0700)]
Imported redgreenblu.com/svn/projects/assert_valid_markup r16
Nguyễn Thái Ngọc Duy [Tue, 22 Aug 2006 03:33:25 +0000 (22 10:33 +0700)]
Updated models and their tests
Nguyễn Thái Ngọc Duy [Mon, 21 Aug 2006 10:33:24 +0000 (21 17:33 +0700)]
Code split
Nguyễn Thái Ngọc Duy [Mon, 21 Aug 2006 01:38:02 +0000 (21 08:38 +0700)]
Added test:coverage:* tasks (require rcov 0.7.0)
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 13:49:27 +0000 (20 20:49 +0700)]
Splitted out profile editing functions into UserProfileController
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 10:02:36 +0000 (20 17:02 +0700)]
Reworked user/list
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 09:01:32 +0000 (20 16:01 +0700)]
Imported PunBB's license
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 08:54:06 +0000 (20 15:54 +0700)]
User#admin (except moderator part)
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 05:35:01 +0000 (20 12:35 +0700)]
Topic#posts sorted by Post#created_at
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 04:44:38 +0000 (20 11:44 +0700)]
Added User#posters
Use attr_accessible in favor of attr_protected
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 03:31:22 +0000 (20 10:31 +0700)]
Corrected user admin link (to /user/admin/:id)
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 03:29:38 +0000 (20 10:29 +0700)]
Give users a change to see what's going on if they are not allowed to read the board. And allow them to log out :-/
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 03:24:10 +0000 (20 10:24 +0700)]
Reworked commit
6d2f215da42f3c904d9e0cdb832f4669aa1ddb28 (caused only one category board to break)
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 02:57:50 +0000 (20 09:57 +0700)]
Group addition/deletion
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 02:04:15 +0000 (20 09:04 +0700)]
Missing fixtures (:categories and :forums) caused test_update_on_topic to fail
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 01:56:12 +0000 (20 08:56 +0700)]
reports.yml lacks message fields, causing unit/report_test.rb to fail. Also remove redundant validation in Report model
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 01:50:18 +0000 (20 08:50 +0700)]
User validations
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 01:33:25 +0000 (20 08:33 +0700)]
Topic validations
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 01:29:47 +0000 (20 08:29 +0700)]
Rank validations
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 01:28:34 +0000 (20 08:28 +0700)]
Post validations
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 01:20:02 +0000 (20 08:20 +0700)]
Group validations
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 01:16:49 +0000 (20 08:16 +0700)]
Forum validations
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 01:02:01 +0000 (20 08:02 +0700)]
Censoring validations
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 00:59:07 +0000 (20 07:59 +0700)]
Category validations
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 00:56:59 +0000 (20 07:56 +0700)]
Ban validation checks
Nguyễn Thái Ngọc Duy [Sun, 20 Aug 2006 00:40:24 +0000 (20 07:40 +0700)]
Group editing
Nguyễn Thái Ngọc Duy [Sat, 19 Aug 2006 10:38:33 +0000 (19 17:38 +0700)]
Make sure if either a category or a forum or a topic is deleted, all dependent objects are deleted too (category -> forum -> topic -> post)
Nguyễn Thái Ngọc Duy [Sat, 19 Aug 2006 09:46:45 +0000 (19 16:46 +0700)]
Forum administration was reviewed. Forum permission editing is functional. Deleting forums need work though due to the lack of AdminController#prune
Nguyễn Thái Ngọc Duy [Sat, 19 Aug 2006 07:21:19 +0000 (19 14:21 +0700)]
Added category deletion confirmation
Nguyễn Thái Ngọc Duy [Sat, 19 Aug 2006 06:44:28 +0000 (19 13:44 +0700)]
Some system info in admin panel
Nguyễn Thái Ngọc Duy [Sat, 19 Aug 2006 04:28:02 +0000 (19 11:28 +0700)]
forum/view can understand params[:pid] and show the proper page
Nguyễn Thái Ngọc Duy [Sat, 19 Aug 2006 03:35:12 +0000 (19 10:35 +0700)]
Hide quick post form if current user is not allowed to post replies
Nguyễn Thái Ngọc Duy [Sat, 19 Aug 2006 03:29:11 +0000 (19 10:29 +0700)]
Cleaned up layouts/applications.rhtml
Moved controller dependent parts out of the layout: forum/index, forum/view, topic/view. foot_links for /search has been dropped because search controller has not yet implemented
Nguyễn Thái Ngọc Duy [Sat, 19 Aug 2006 01:01:31 +0000 (19 08:01 +0700)]
Renamed main.rhtml to application.rhtml so that we won't need to explicitly "specify layout 'main'"
Nguyễn Thái Ngọc Duy [Fri, 18 Aug 2006 09:38:24 +0000 (18 16:38 +0700)]
Refactored TopicController into several functions
Nguyễn Thái Ngọc Duy [Fri, 18 Aug 2006 09:23:37 +0000 (18 16:23 +0700)]
What a beautiful day! I wrote a wrong function. Then I wrote a wrong test too!
Repeat yourself tenth: YOU CAN POST IF ONLY FORUMS ARE NOT REDIRECTED FORUMS
Nguyễn Thái Ngọc Duy [Fri, 18 Aug 2006 08:23:31 +0000 (18 15:23 +0700)]
Post#poster and Post#poster_email are automatically set based on Post#poster_user on creation
Nguyễn Thái Ngọc Duy [Fri, 18 Aug 2006 08:20:31 +0000 (18 15:20 +0700)]
Stricter validation on Forum and Category
Forum is valids if it has a valid category.
Category is valids if has a non-empty cat_name.
Nguyễn Thái Ngọc Duy [Fri, 18 Aug 2006 08:18:30 +0000 (18 15:18 +0700)]
Added Topic#can_reply?, validates_associated and attr_accessible
Nguyễn Thái Ngọc Duy [Fri, 18 Aug 2006 07:50:43 +0000 (18 14:50 +0700)]
Added Forum#can_post?
Nguyễn Thái Ngọc Duy [Fri, 18 Aug 2006 04:36:49 +0000 (18 11:36 +0700)]
Reindentation
Nguyễn Thái Ngọc Duy [Fri, 18 Aug 2006 02:12:00 +0000 (18 09:12 +0700)]
Splitted out Forum#view into Forum#view and Forum#find_forum
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 23:38:26 +0000 (18 06:38 +0700)]
Redirect to forum/index if forum/view/id is unable to serve the requests
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 23:36:45 +0000 (18 06:36 +0700)]
Added task :dump_fixture to dump a table to output in yaml format
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 10:23:12 +0000 (17 17:23 +0700)]
Renamed forum/list to forum/index no more additional redirect in forum/index
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 10:02:33 +0000 (17 17:02 +0700)]
Moved User#group#g_read_board checking to ApplicationController
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 09:30:39 +0000 (17 16:30 +0700)]
Modified config/routes.rb the first time. Moved forum/list into homepage
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 09:19:27 +0000 (17 16:19 +0700)]
Ignore cases checking for email/username uniqueness
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 09:18:01 +0000 (17 16:18 +0700)]
Using fixtures directly instead of calling Class#find_by_id. The test code is reduced a bit
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 04:48:40 +0000 (17 11:48 +0700)]
html_escape for Forum#forum_name
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 04:45:57 +0000 (17 11:45 +0700)]
Support for redirect forums
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 04:34:57 +0000 (17 11:34 +0700)]
Wrong condition on redirect_url editability
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 04:32:03 +0000 (17 11:32 +0700)]
forum/list honors forums.disp_position.
Nguyễn Thái Ngọc Duy [Thu, 17 Aug 2006 04:29:13 +0000 (17 11:29 +0700)]
Should be @categories[i], not cat