Skip to content

Commit

Permalink
CSS updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tvroom committed Jul 11, 2005
1 parent fad8b46 commit 899593d
Show file tree
Hide file tree
Showing 23 changed files with 395 additions and 308 deletions.
33 changes: 21 additions & 12 deletions plugins/Search/templates/commentsearch;search;default
Expand Up @@ -11,24 +11,33 @@ en_US
__name__
commentsearch
__template__
<P>This search covers only subjects of comments that are posted.<P>

<div class="commentsearch">
<div class="message">
This search covers only subjects of comments that are posted.
</div>
[% FOREACH comment=comments %]
[% user_email = Slash.db.getUser(comment.uid, ['fakeemail', 'nickname']) %]
<B><A HREF="[% gSkin.rootdir %]/comments.pl?cid=[% comment.cid %]&amp;sid=[% comment.did %]">[% comment.subject %]</A></B>

by <A HREF="mailto:[% user_email.fakeemail | fixparam %]">[% user_email.nickname | strip_literal %]</A> on [% Slash.timeCalc(comment.date) %]<BR>
<FONT SIZE="-1">
Attached to: <A HREF="[% comment.url %]">[% comment.title %]</A> posted on [% Slash.timeCalc(comment.ts) %]<BR>
<div class="search-results">
<h4>
<a href="[% gSkin.rootdir %]/comments.pl?cid=[% comment.cid %]&amp;sid=[% comment.did %]">[% comment.subject %]</a>
</h4>
<div class="author">
by <a href="mailto:[% user_email.fakeemail | fixparam %]">[% user_email.nickname | strip_literal %]</a> on [% Slash.timeCalc(comment.date) %]
</div>
<div class="details">
Attached to: <a href="[% comment.url %]">[% comment.title %]</a> posted on [% Slash.timeCalc(comment.ts) %]
</div>
[% IF comment.score %]
Score: [% comment.score %] <br>
<div class="score">
Score: [% comment.score %]
</div>
[% END %]
</FONT>
<P>
</div>
[% END %]
[% PROCESS pagination %]
<P>


</div>
</div>
__seclev__
100
__version__
Expand Down
28 changes: 21 additions & 7 deletions plugins/Search/templates/data;search;default
Expand Up @@ -19,31 +19,45 @@ __template__

[% CASE 'nousers' %]
[% returnme.data_constant = 1 %]
No usernames were found that match your query.
<div class="usersearch">
No usernames were found that match your query.
</div>

[% CASE 'nostories' %]
[% returnme.data_constant = 1 %]
No stories were found that match your query.
<div class="storysearch">
No stories were found that match your query.
</div>

[% CASE 'nocomments' %]
[% returnme.data_constant = 1 %]
No comments were found that match your query.
<div class="commentsearch">
No comments were found that match your query.
</div>

[% CASE 'nopolls' %]
[% returnme.data_constant = 1 %]
No poll questions were found that match your query.
<div class="pollsearch">
No poll questions were found that match your query.
</div>

[% CASE 'nojournals' %]
[% returnme.data_constant = 1 %]
No journals were found to match your query.
<div class="journalsearch">
No journals were found to match your query.
</div>

[% CASE 'nosubmissions' %]
[% returnme.data_constant = 1 %]
No submissions were found to match your query.
<div class="subsearch">
No submissions were found to match your query.
</div>

[% CASE 'norss' %]
[% returnme.data_constant = 1 %]
No rss entries were found to match your query.
<div class="rsssearch">
No rss entries were found to match your query.
</div>

[% CASE 'all_sections' %]
[% returnme.data_constant = 1 %]
Expand Down
34 changes: 23 additions & 11 deletions plugins/Search/templates/journalsearch;search;default
Expand Up @@ -11,20 +11,32 @@ en_US
__name__
journalsearch
__template__

<div class="journalsearch">
[% FOREACH journal=entries %]
<B><A HREF="[% gSkin.rootdir %]/~[% journal.nickname | fixparam %]/journal/[% journal.id %]">[% journal.description %]</A></B><BR>
<FONT SIZE="-1">On [% Slash.timeCalc(journal.date) %]</FONT><BR>
[% journal.article %]<BR>
<FONT SIZE="-1">
Author: <A HREF="[% gSkin.rootdir %]/~[% journal.nickname | fixparam %]/">[% journal.nickname | strip_literal %]</A>
[% IF journal.score %]<BR>
Score: ([% journal.score %])
[% END %]
</FONT>
<P>
<div class="search-results">
<h4>
<a href="[% gSkin.rootdir %]/~[% journal.nickname | fixparam %]/journal/[% journal.id %]">[% journal.description %]</a>
</h4>
<div class="data">
On [% Slash.timeCalc(journal.date) %]
</div>
<div class="intro">
[% journal.article %]
</div>
<div class="author">
Author: <a href="[% gSkin.rootdir %]/~[% journal.nickname | fixparam %]/">[% journal.nickname | strip_literal %]</a>
</div>
[% IF journal.score %]
<div class="score">
Score: ([% journal.score %])
</div>
[% END %]
</div>
[% END %]
[% PROCESS pagination %]
<P>
</div>
</div>

__seclev__
100
Expand Down
18 changes: 10 additions & 8 deletions plugins/Search/templates/nosearch;search;default
Expand Up @@ -11,16 +11,18 @@ en_US
__name__
nosearch
__template__
<blockquote><p>Sorry, search is down at the moment.

<div class="nosearch">
Sorry, search is down at the moment.
Until it's back up, you may wish to search
[% constants.sitename %] through Google:<br>
<FORM METHOD="GET" ACTION="http://www.google.com/search">
<INPUT TYPE="TEXT" NAME="query" VALUE="[% form.query | strip_attribute %]" SIZE="20">
<INPUT TYPE="HIDDEN" NAME="as_sitesearch" VALUE="[% gSkin.basedomain %]">
<INPUT TYPE="SUBMIT" VALUE="Google [% constants.sitename %]">
</FORM>
</blockquote><p>

<form method="get" action="http://www.google.com/search">
<input type="text" name="query" value="[% form.query | strip_attribute %]" size="20">
<input type="hidden" name="as_sitesearch" value="[% gSkin.basedomain %]">
<input type="submit" value="Google [% constants.sitename %]">
</form>
</div>
</div>
__seclev__
100
__version__
Expand Down
6 changes: 4 additions & 2 deletions plugins/Search/templates/pagination;search;default
Expand Up @@ -11,18 +11,20 @@ en_US
__name__
pagination
__template__
<div class="pagination">
[% back = back || 0;
IF (back > -1) || forward %]
[% IF (back > -1) %]
<A HREF="[% gSkin.rootdir %]/search.pl?[% args %]&amp;start=[% back %]">&lt;Last [% constants.search_default_display %] matches</A>
<A HREF="[% gSkin.rootdir %]/search.pl?[% args %]&amp;start=[% back %]">&laquo; Last [% constants.search_default_display %] matches</A>
[% END %]
[% IF (back > -1) && forward %]
|
[% END %]
[% IF forward %]
<A HREF="[% gSkin.rootdir %]/search.pl?[% args %]&amp;start=[% forward %]">Next [% constants.search_default_display %] matches&gt;</A>
<A HREF="[% gSkin.rootdir %]/search.pl?[% args %]&amp;start=[% forward %]">Next [% constants.search_default_display %] matches &raquo;</A>
[% END %]
[% END %]
</div>
__seclev__
100
__version__
Expand Down
29 changes: 19 additions & 10 deletions plugins/Search/templates/pollsearch;search;default
Expand Up @@ -11,22 +11,31 @@ en_US
__name__
pollsearch
__template__

<div class="pollsearch">
[% FOREACH poll = polls %]
[% skin = Slash.db.getSkin(poll.skin) %]
[% link = skin.url ? skin.url : gSkin.rootdir %]
<B><A HREF="[% link %]/pollBooth.pl?qid=[% poll.qid %]">[% poll.question %]</A></B><BR>
<FONT SIZE="-1">
On [% Slash.timeCalc(poll.date) %]<BR>
Voters: [% poll.voters %]<BR>
[% IF poll.score %]
<div class="search-results">
<h4>
<a href="[% link %]/pollBooth.pl?qid=[% poll.qid %]">[% poll.question %]</a>
</h4>
<div class="data">
On [% Slash.timeCalc(poll.date) %]
</div>
<div class="details">
Voters: [% poll.voters %]
</div>
[% IF poll.score %]
<div class="score">
Score: [% poll.score %]
[% END %]
</FONT>
<P>
</div>
[% END %]
</div>
[% END %]
[% PROCESS pagination %]
<P>

</div>
</div>
__seclev__
100
__version__
Expand Down
32 changes: 21 additions & 11 deletions plugins/Search/templates/rsssearch;search;default
Expand Up @@ -12,20 +12,30 @@ __name__
rsssearch
__template__
[% USE Slash %]
<div class="rsssearch">
[% FOREACH entry=entries %]
<B><A HREF="[% entry.link %]">[% entry.title %]</A><B><BR>
<FONT SIZE="-1">On [% Slash.timeCalc(entry.created) %]</FONT>
[% IF entry.description %]
[% entry.description %]...<BR>
[% END %]
[% IF entry.score %]
Score: [% entry.score %]<BR>
[% END %]
<P>
<div class="search-results">
<h4>
<a href="[% entry.link %]">[% entry.title %]</a>
</h4>
<div class="data">
On [% Slash.timeCalc(entry.created) %]
</div>
[% IF entry.description %]
<div class="intro">
[% entry.description %]...
</div>
[% END %]
[% IF entry.score %]
<div class="score">
Score: [% entry.score %]
</div>
[% END %]
</div>
[% END %]
[% PROCESS pagination %]
<P>

</div>
</div>
__seclev__
100
__version__
Expand Down

0 comments on commit 899593d

Please sign in to comment.