Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item1918: first release of the jquery frontend
git-svn-id: http://svn.foswiki.org/trunk/TagsPlugin@4883 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
OliverKrueger
authored and
OliverKrueger
committed
Sep 14, 2009
1 parent
8624b7d
commit 4906e40
Showing
27 changed files
with
816 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252352642" format="1.1" version="1.5"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
<noautolink> | ||
%TAGSEARCH{ | ||
query="tag" | ||
tag="%%URLPARAM{"q"}%%" | ||
format="$tag" | ||
sep="$n" | ||
}% | ||
</noautolink> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1251408056" format="1.1" version="1.1"}% | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252340188" format="1.1" version="1.2"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
%TMPL:INCLUDE{view}% | ||
|
||
%TMPL:DEF{"tagsplugin:header"}%%TMPL:END% | ||
%TMPL:DEF{"tagsplugin:header"}%%TMPL:END% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1251706916" format="1.1" reprev="1.7" version="1.7"}% | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252337808" format="1.1" reprev="1.9" version="1.9"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
%TAGCLOUD{ | ||
terms="$percntTAGSEARCH{ query=\"tag\" format=\"$tag:1:$web:$topic:$user\" sep=\",\" web=\"%URLPARAM{"tagweb" default="%TAGWEB%"}%\" user=\"%URLPARAM{"taguser" default="%TAGUSER%"}%\" }$percnt" | ||
header="<div style=\"text-align:center; padding:15px;line-height:180%\">" | ||
format="<span style='font-size:$weightpx;line-height:90%;text-decoration:none' title='$5' url='$percntSCRIPTURL{rest}$percnt/TagsPlugin/' class='tagsplugin_tagcloud_tag' item='$3.$4' topic='$4' web='$3' tag='$term' user='$5'>$term</span>" | ||
footer="</div>" | ||
format="<a style='font-size:$weightpx;' class='tagsplugin_tagcloud_tag' href='$percntSCRIPTURL{view}$percnt/$percntSYSTEMWEB$percnt/TagsPluginTagDetails?tag=$term' item='$3.$4' topic='$4' web='$3' tag='$term' user='$5'>$term</a>" | ||
warn="off" | ||
}% | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252340538" format="1.1" version="1.7"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
<div style="text-align:left;"> | ||
<noautolink> | ||
---++ %MAKETEXT{"Tag Details on"}% %GRAY%%URLPARAM{"tag" default="undef"}%%ENDCOLOR% | ||
|
||
---+++ %MAKETEXT{"Topics, tagged with this tag"}% | ||
%TAGCLOUD{ | ||
terms="$percntTAGSEARCH{ query=\"topic\" tag=\"$percntURLPARAM{\"tag\" default=\"undef\"}$percnt\" format=\"$item:1:$web:$topic:$user\" }$percnt" | ||
header="<div style=\"text-align:center; padding:15px;line-height:180%\">" | ||
format="<span style='font-size:$weightpx;line-height:90%'><a href='$percntSCRIPTURL{view}$percnt/$3/$4' style='color:$fadeRGB(104,144,184,0,102,255);text-decoration:none' title='$count'>$term</a></span>" | ||
footer="</div>" | ||
warn="off" | ||
}% | ||
|
||
---+++ %MAKETEXT{"Users, who like this tag"}% | ||
%TAGCLOUD{ | ||
terms="$percntTAGSEARCH{ query=\"user\" tag=\"$percntURLPARAM{\"tag\" default=\"undef\"}$percnt\" format=\"$user:1:$web:$topic\" }$percnt" | ||
header="<div style=\"text-align:center; padding:15px;line-height:180%\">" | ||
format="<span style='font-size:$weightpx;line-height:90%'><a href='$percntSCRIPTURL{view}$percnt/$percntUSERSWEB$percnt/$term' style='color:$fadeRGB(104,144,184,0,102,255);text-decoration:none' title='$count'>$term</a></span>" | ||
footer="</div>" | ||
warn="off" | ||
}% | ||
|
||
---+++ %MAKETEXT{"List all occurrences of this tag"}% | ||
%TAGSEARCH{ | ||
query="topic" | ||
tag="%URLPARAM{"tag" default="undef"}%" | ||
header="|*%MAKETEXT{"Web"}%*|*%MAKETEXT{"Topic"}%*|*%MAKETEXT{"User"}%*|*%MAKETEXT{"Action"}%*|$n" | ||
format="| [[$item][$web]] | [[$item][$topic]] | [[%USERSWEB%.$user][$user]] | <span class='tagsplugin_actions $untaggable'><a href='%SCRIPTURL{rest}%/TagsPlugin/untag?item=$item&tag=$tag&user=$user&redirectto=%SCRIPTURL{view}%/%WEB%/%TOPIC%?tag=$tag' class=''>Untag</a></span> |" | ||
sep="$n" | ||
}% | ||
|
||
<!-- | ||
* Local ROOT = %ISTAGADMIN% | ||
--> | ||
%IF{"$ ROOT" then="%INCLUDE{%SYSTEMWEB%.TagsPluginTagDetailsAdmin}%"}% | ||
|
||
</noautolink> | ||
</div> | ||
|
||
%META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="System.TagsPluginNoHeaderViewTemplate"}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252340581" format="1.1" version="1.2"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
---+++ %MAKETEXT{"Delete this tag completely"}% | ||
|
||
---+++ %MAKETEXT{"Merge another tag into this one"}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252700229" format="1.1" reprev="1.4" version="1.4"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
<div style="text-align:left;"> | ||
<noautolink> | ||
---+++ %MAKETEXT{"Topics, tagged with this tag"}% | ||
%TAGCLOUD{ | ||
terms="$percntTAGSEARCH{ query=\"topic\" tag=\"$percntURLPARAM{\"tag\" default=\"undef\"}$percnt\" format=\"$item:1:$web:$topic:$user\" }$percnt" | ||
split="[,]" | ||
header="<div style=\"text-align:center; padding:15px;line-height:180%\">" | ||
format="<span style='font-size:$weightpx;line-height:90%'><a href='$percntSCRIPTURL{view}$percnt/$3/$4' style='color:$fadeRGB(104,144,184,0,102,255);text-decoration:none' title='$count'>$4</a></span>" | ||
footer="</div>" | ||
warn="off" | ||
}% | ||
|
||
---+++ %MAKETEXT{"Users, who like this tag"}% | ||
%TAGCLOUD{ | ||
terms="$percntTAGSEARCH{ query=\"user\" tag=\"$percntURLPARAM{\"tag\" default=\"undef\"}$percnt\" format=\"$user:1:$web:$topic\" }$percnt" | ||
header="<div style=\"text-align:center; padding:15px;line-height:180%\">" | ||
format="<span style='font-size:$weightpx;line-height:90%'><a href='$percntSCRIPTURL{view}$percnt/$percntUSERSWEB$percnt/$term' style='color:$fadeRGB(104,144,184,0,102,255);text-decoration:none' title='$count'>$term</a></span>" | ||
footer="</div>" | ||
warn="off" | ||
}% | ||
|
||
---+++ %MAKETEXT{"Maintain this tag"}% | ||
%ICON{trash}% <a href='%SCRIPTURL{rest}%/TagsPlugin/untag?tag=%URLPARAM{"tag" default="undef"}%&item=%URLPARAM{"tagitem" default="undef"}%&user=%URLPARAM{"taguser" default="undef"}%' class='tagsplugin_untag_link' tag='%URLPARAM{"tag" default="undef"}%' item='%URLPARAM{"tagitem" default="undef"}%' user='%URLPARAM{"taguser" default="undef"}%'>Remove</a> %URLPARAM{"taguser" default="undef"}%'s <span class='foswikiGrayText'>%URLPARAM{"tag" default="undef"}%</span> tag from this topic. | ||
|
||
</noautolink> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1251896891" format="1.1" reprev="1.5" version="1.5"}% | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252679284" format="1.1" version="1.13"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
%TAGSEARCH{ | ||
query="tag" | ||
web="%URLPARAM{"tagweb" default="%TAGWEB%"}%" | ||
topic="%URLPARAM{"tagtopic" default="%TAGTOPIC%" }%" | ||
format=" <span class='tagsplugin_tag_container'><a class='tagsplugin_tag' href='%SCRIPTURL{view}%/%SYSTEMWEB%/TagsPluginTagDetails?tag=$tag' tag='$tag'>$tag</a><a class='tagsplugin_tag_remove $untaggable' href='%SCRIPTURL{rest}%/%SYSTEMWEB%/TagsPlugin/untag?tag=$tag&item=$item&user=$user' tag='$tag' item='$item' user='$user' style='display:none;'>x</a></span>" | ||
sep=" " | ||
}% | ||
format=" <li class='tagsplugin_tag'><a class='tagsplugin_tag_link' href='%SCRIPTURL{view}%/%SYSTEMWEB%/TagsPluginTagDetails?tag=$tag' tag='$tag' title='Owner: $percntSPACEOUT{\"$user\"}$percnt' item='$item' user='$user'>$percntICON{tag}$percnt $tag</a> <a class='tagsplugin_tag_remove $untaggable' href='%SCRIPTURL{rest}%/TagsPlugin/untag?tag=$tag&item=$item&user=$user' tag='$tag' item='$item' user='$user'>x</a></li>" | ||
sep="$n" | ||
}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252698395" format="1.1" reprev="1.2" version="1.2"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
---++ <nop>TagsPlugin User Selector | ||
This topic is included by the =tagspluginjquery= template. | ||
|
||
By default it presents the user two or more links: | ||
* one link for "all", | ||
* one for the user him/herself and | ||
* (optionally) one link for each group the user is member of. | ||
|
||
Whenever a tagcloud is requested by the user (by clicking on the selector buttons), the %SYSTEMWEB%.TagsPlugin reads the custom attribute =user= from the html element which is marked with the class =tagsplugin_user_active=. | ||
|
||
%X% Make sure, that initially this class is only set on one element. | ||
|
||
If you want to customize the "user buttons", this is the right place. | ||
|
||
---++ Implementation | ||
<verbatim> | ||
%STARTINCLUDE% <span class='foswikiGrayText'>Users:</span> | ||
<a href='#' class='tagsplugin_user tagsplugin_user_active' user='all'>%ICON{filter}% all</a> | ||
<a href='#' class='tagsplugin_user' user='%WIKINAME%'>%ICON{filter}% %SPACEOUT{"%WIKINAME%"}%</a> | ||
%TAGGROUPS{format=" <a href='#' class='tagsplugin_user' user='$group'>$percntICON{filter}$percnt $percntSPACEOUT{\"$group\"}$percnt</a>" sep="$n" }%%STOPINCLUDE% | ||
</verbatim> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1252698596" format="1.1" reprev="1.2" version="1.2"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
---++ <nop>TagsPlugin Web Selector | ||
This topic is included by the =tagspluginjquery= template. | ||
|
||
By default it presents the user two or more links: | ||
* one link for "all" and | ||
* one link for each web. | ||
The current web is preselected with =tagsplugin_web_active=. | ||
|
||
Whenever a tagcloud is requested by the user (by clicking on the selector buttons), the %SYSTEMWEB%.TagsPlugin reads the custom attribute =web= from the html element which is marked with the class =tagsplugin_web_active=. | ||
|
||
%X% Make sure, that initially this class is only set on one element. | ||
|
||
If you want to customize the "web buttons", this is the right place. | ||
|
||
---++ Implementation | ||
<verbatim> | ||
%STARTINCLUDE% <span class='foswikiGrayText'>Webs:</span> | ||
<a href='#' class='tagsplugin_web %IF{"$ TAGSPLUGIN_WEBSELECTOR_DEFAULT='all'" then="tagsplugin_web_active"}%' web='all'>%ICON{filter}% all</a> | ||
%FLEXWEBLIST{ | ||
webs="public, -Trash" | ||
format=" <a href='#' class='tagsplugin_web $percntIF{\"$ TAGSPLUGIN_WEBSELECTOR_DEFAULT='$name'\" then=\"tagsplugin_web_active\"}$percnt' web='$name'>$percntICON{filter}$percnt $name</a>" | ||
separator="$n" | ||
}%%STOPINCLUDE% | ||
</verbatim> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.