joshua stein
95202f21b2
add Tag.active scope to deprecate tags without removing them
2014-02-21 10:57:30 -06:00
joshua stein
20cf2bab65
show how many stories have been tagged with each on filters page
...
closes #93
closes #114
2014-01-24 13:53:10 -06:00
joshua stein
be2c706c06
fix Tag.accessible_to to allow moderators to use privileged tags
2014-01-14 11:39:56 -06:00
joshua stein
65a9a77104
Merge pull request #92 from srgpqt/filters
...
simplify and optimize Filters controller and template
2014-01-12 22:34:09 -08:00
joshua stein
7abb4636dd
reduce access required for privileged tags to just moderator
2014-01-12 13:28:07 -06:00
Serge Paquet
2c906efa7e
simplify and optimize Filters controller and template
2014-01-09 01:44:03 -05:00
Serge Paquet
b42189f45b
replace some raw sql with database-agnostic activerecord queries
2013-12-30 16:23:59 -05:00
Serge Paquet
8fbf76b484
use activerecord query interface instead of deprecated finder methods
2013-12-25 16:43:50 -05:00
joshua stein
249dd85ec3
allow non-logged-in users to define tag filters
...
when not logged in, store the filters in a long-lasting cookie and
do not cache the home page
for that one guy on hacker news that complained about lobste.rs not
having this
2013-08-05 02:19:55 -05:00
joshua stein
dbc2e40684
move tag css class building to Tag model
...
add a tag_is_media class to tags with that type, use that for
matching in application.css instead
2013-08-05 01:02:48 -05:00
joshua stein
0ff4ef2484
Tag has_many taggings, and delete them on destroy
2013-03-30 11:37:38 -05:00
joshua stein
39bb9b77de
minor cleanup
2012-09-20 10:53:11 -05:00
Robert J Samson
f3eb44972b
Check to make sure a user isn't improperly using a privileged tag when saving a Story.
2012-09-19 20:57:45 -04:00
Robert J Samson
7fd75a7f3a
More descriptive method and attribute names
2012-09-19 20:28:09 -04:00
Robert J Samson
5ada55f10d
Add a 'private' attribute to tags to allow for admin / mod specific tags
...
Private tags would allow admins to create tags that only admins could
use, and that regular users could not filter. The best example use case
for this is an 'announements' tag for site announements that all users
should see.
2012-09-19 16:44:57 -04:00
joshua stein
0663ea0fed
show how many users are filtering each tag
2012-09-19 12:25:11 -05:00
joshua stein
093747b796
initial work on conversion from php tree
2012-06-16 20:15:46 -05:00