Skip to content

Commit

Permalink
Added getDescriptions for non_nexus submittables, and highlight of ne…
Browse files Browse the repository at this point in the history
…xus topics for topics_submittable
  • Loading branch information
tvroom committed Dec 7, 2004
1 parent 81e40ab commit 67d4852
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Slash/DB/MySQL/MySQL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ my %descriptions = (
'non_nexus_topics'
=> sub { $_[0]->sqlSelectMany('topics.tid AS tid,textname', 'topics LEFT JOIN topic_nexus ON topic_nexus.tid=topics.tid', "topic_nexus.tid IS NULL") },

'highlighted-topics-submittable'
=> sub { $_[0]->sqlSelectMany('topics.tid AS tid, IF(topic_nexus.tid IS NULL, textname, CONCAT("*",textname))', 'topics LEFT JOIN topic_nexus ON topic_nexus.tid=topics.tid', "submittable='yes'") },


'non_nexus_topics-submittable'
=> sub { $_[0]->sqlSelectMany('topics.tid AS tid,textname', 'topics LEFT JOIN topic_nexus ON topic_nexus.tid=topics.tid', "topic_nexus.tid IS NULL AND submittable='yes'") },


'non_nexus_topics-storypickable'
=> sub { $_[0]->sqlSelectMany('topics.tid AS tid,textname', 'topics LEFT JOIN topic_nexus ON topic_nexus.tid=topics.tid', "topic_nexus.tid IS NULL AND storypickable='yes'") },

Expand Down

0 comments on commit 67d4852

Please sign in to comment.