Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

159 lines (153 sloc) 6.571 kb
__section__
default
__description__
You should describe stuff here.
__title__
Useless title to template
__page__
firehose
__lang__
en_US
__name__
data
__seclev__
10000
__template__
[% rnf = ' rel="nofollow"' %]
[% SWITCH value %]
[% CASE 'byline' %]
[% IF !hidediv %]
<div class="details" id="details-[% item.id %]">
[% END %]
<b>
[%- IF adminmode && item.type == "submission" %]<a href="[% gSkin.rootdir %]/submit.pl?op=viewsub&amp;subid=[% item.srcid %]">[% END -%]
[% IF item.type == "submission" %]
Submitted
[% ELSIF item.type == "journal" %]
Journal
[% ELSIF item.type == "story" %]
Posted
[% ELSIF item.type == "bookmark" %]
Bookmark
[% ELSIF item.type == "feed" %]
From feed
[% ELSIF item.type != "comment" %]
Submitted
[% END %]
[%- IF adminmode && item.type == "submission" %]</a>[% END -%]
by [% IF adminmode && item.type != "story" %]
[% IF Slash.isAnon(the_user.uid) %][% the_user.nickname | strip_literal %]
[% ELSE %]<a href="[% constants.real_rootdir %]/~[% the_user.nickname | strip_paramattr %]">[% the_user.nickname | strip_literal %] ([% the_user.uid %])</a>
[% END %]
[% END %]
[% IF extras && num_from_uid != '0' %]
([% accepted_from_uid %]/[% num_from_uid %])
[% END %]
[% IF adminmode && ( item.name || item.email ) %]
([% item.name %])<a href="[% item.email | strip_attribute %]"[% rnf %]>[% item.email | strip_literal %]</a>
[% ELSE %]
[% IF item.type == "submission" %]
[% IF item.email %]<a href="[% item.email | strip_attribute %]"[% rnf %]>[% END %][% item.name | strip_literal %][% IF item.email %]</a>[% END %]
[% ELSIF item.type == "story" %]
[% IF the_user.homepage %]<a href="[% the_user.homepage %]"[% rnf %]>[% END %][% the_user.nickname %][% IF the_user.homepage %]</a>[% END %]
[% ELSE %]
[% IF Slash.isAnon(the_user.uid) %][% the_user.nickname | strip_literal %]
[% ELSE %]<a href="[% constants.real_rootdir %]/~[% the_user.nickname | strip_paramattr %]">[% the_user.nickname | strip_literal %]</a>
[% END %]
[% END %]
[% END %]
[% IF extras && num_with_emaildomain != '0' %]
([% accepted_from_emaildomain %]/[% num_with_emaildomain %])
[% END %]
[% IF adminmode %]
[% Slash.vislenify(item); %]
<a href="[% constants.real_rootdir -%]/users.pl?op=userinfo&amp;userfield=[% item.ipid -%]&amp;fieldname=ipid">[% item.ipid_vis -%]</a>
[% IF item.type == "story" %]
[% story = Slash.db.getStory(item.srcid) %]
[% IF story && story.fhid %]<a href="[% gSkin.rootdir %]/firehose.pl?op=view&amp;id=[% story.fhid %]">Original Submission</a>[% END %]
[% ELSIF item.stoid;
to_story = Slash.db.getStory(item.stoid) %]
<a href="[% gSkin.rootdir %]/article.pl?sid=[% to_story.sid | strip_attribute %]">Posted as Story</a>
[% END %]
[% END %]
[% IF extras && adminmode && num_with_ipid != '0' %]
([% accepted_from_ipid %]/[% num_with_ipid %])
[% END %]
<span id="fhtime-[% item.id %]">[% item.atstorytime %]</span></b>
[% IF item.type == "comment" %]
(<a href="[% gSkin.rootdir %]/comments.pl?sid=[% item.discussion %]&amp;cid=[% item.srcid %]">#[% item.srcid %]</a>)
[% END %]
<br>
[% IF item.type == "comment";
com = Slash.db.getComment(item.srcid);
disc = Slash.db.getDiscussion(com.sid); %]
Attached to: <a href="[% disc.url %]">[% disc.title | strip_literal %]</a><br>
[% END %]
[% IF constants.use_dept && item.dept %]<strong>from the <b>[% item.dept %]</b> dept.</strong>[% END %]
[% IF !hidediv %]
</div>
[% END %]
[% CASE 'noitems' %]
[% fh = Slash.getObject("Slash::FireHose")
fh_array = fh.getFireHoseColors(1);
fh_hash = fh.getFireHoseColors();
fh_num = fh_hash.${options.color};
new_color = fh_array.$fh_num;
%]
<b>
[% IF user.state.firehose_page == "user" %]
This user's Firehose page contains no [% IF form.page %]additional [% END %]entries;
[% ELSE %]
No matches were found. You may want to try [% IF new_color %]<a href="?[% IF form.embed %]embed=1&amp;[% END %]color=[% new_color | strip_paramattr %]">[% END %]lowering your color threshold[% IF new_color %] to [% new_color %][% END %][% IF new_color %]</a>[% END %] or [% IF options.duration != -1 %]<a href="?[% IF form.embed %]embed=1&amp;[% END %]startdate=&amp;duration=-1">[% END %]expanding your time window[% IF options.duration != -1 %]</a>[% END %]
[% END %]
</b>
<br><br>
[% CASE 'firehose_more_link' %]
[% extra_onclick = '' %]
[% IF !contentsonly %]
<span id="firehose_more">
[% END %]
[% IF day_label && day_count && options.duration != -1;
IF need_day_label;
label = $day_label _ " ";
ELSE;
label = label _ day_count _ " more &rsaquo;";
END;
ELSIF future_count > 0 ;
IF options.duration == -1;
label = future_count _ " more &rsaquo;";
ELSE;
label = future_count _ " more &rsaquo;";
END;
ELSIF future_count <= 0 ;
IF options.duration != -1 && options.orderby == "createtime";
label = "more &rsaquo;";
extra_onclick = 'firehose_set_options(\'duration\', -1); ';
ELSIF options.orderby != "createtime";
fh = Slash.getObject("Slash::FireHose")
fh_array = fh.getFireHoseColors(1);
fh_hash = fh.getFireHoseColors();
fh_num = fh_hash.${options.color};
new_color = fh_array.$fh_num;
IF new_color;
label = "More $new_color &raquo;";
extra_onclick = "firehose_slider_set_color('" _ new_color _ "');";
END;
END;
END;
IF !label;
label = "More &raquo;";
END;
%]
<a href="#" onclick="[% extra_onclick %] firehose_more(); return false;">[% label %]</a>
<span class="busy" style="display:none"><img src="[% constants.imagedir %]/spinner2.gif"></span>
[% IF !contentsonly %]
</span>
[% END %]
[% CASE 'notavailable' %]
The item you're trying to view either does not exist, or is not viewable to you.
[% CASE 'metamod_msg' %]
For [% constants.sitename %]'s moderation system to function properly, we need your help. Below are a number of random user comments in our system. You are asked to decide if these are good or bad. Clicking the + and - indicates that you think that a comment is good or bad. You are welcome to skip any comment that you are unsure about. What is most important is that you are objective and honest- a comment that you mark with the '+' means that you think that other [% constants.sitename %] readers would benefit from this comment. Don't hesitate to flag mediocrity with the '-' graphic either. The only way the system gets smarter is if you are honest, objective and a little bit harsh.
[% END %]
__version__
$Id$
Jump to Line
Something went wrong with that request. Please try again.