Skip to content
Permalink
Browse files

Item9007: Only use TABLE macro when TablePluginEnabled

git-svn-id: http://svn.foswiki.org/trunk@7504 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
PaulHarvey PaulHarvey
PaulHarvey authored and PaulHarvey committed May 22, 2010
1 parent 9c60712 commit 5fb828f8f070fbeedc0165a24e7deb23bef6e29b
Showing with 24 additions and 6 deletions.
  1. +24 −6 core/templates/attachtables.tmpl
@@ -12,8 +12,13 @@
%TMPL:DEF{ATTACH:files:row(basic)}%| %A_ICON%<span class="foswikiHidden">%A_EXT%</span> | <a href="%ATTACHURLPATH%/%ENCODE{%A_FILE%}%"><noautolink>%A_FILE%</noautolink></a> | <a href="%SCRIPTURLPATH{"attach"}%/%WEB%/%TOPIC%?filename=%ENCODE{"%A_FILE%"}%;revInfo=1" title="%MAKETEXT{"change, update, previous revisions, move, delete..."}%" rel="nofollow">%MAKETEXT{"manage"}%</a> | %A_SIZE%|<span class="foswikiNoBreak">%A_DATE%</span> |%A_USER% |%A_COMMENT% |%TMPL:END%

%{ Header for topic attachment table }%
%TMPL:DEF{ATTACH:files:header}%%TABLE{summary="%MAKETEXT{"Attachments"}%"}%
%TMPL:P{ATTACH:files:header(basic)}%
%TMPL:DEF{ATTACH:files:header}%%TMPL:P{
context="TablePluginEnabled"
then="ATTACH:tablemacro"
ATMATTRIBUTES=""
ATMCAPTION=""
ATMSUMMARY="%MAKETEXT{"Attachments"}%"
}%%TMPL:P{ATTACH:files:header(basic)}%
%TMPL:END%

%{ Row for topic attachment table }%
@@ -24,8 +29,13 @@
%TMPL:DEF{ATTACH:files:footer}%</div>%TMPL:END%

%{ Header for table at top of attach screen }%
%TMPL:DEF{ATTACH:files:header:A}%%TABLE{summary="%MAKETEXT{"Attachments"}%"}%
%TMPL:P{ATTACH:files:header(basic)}% *%MAKETEXT{"Attribute"}%* |
%TMPL:DEF{ATTACH:files:header:A}%%TMPL:P{
context="TablePluginEnabled"
then="ATTACH:tablemacro"
ATMATTRIBUTES=""
ATMCAPTION=""
ATMSUMMARY="%MAKETEXT{"Attachments"}%"
}%%TMPL:P{ATTACH:files:header(basic)}% *%MAKETEXT{"Attribute"}%* |
%TMPL:END%

%{ Row for table at top of attach screen }%
@@ -36,8 +46,13 @@
%TMPL:DEF{ATTACH:files:footer:A}%</div>%TMPL:END%

%{ Header for versions table in attach screen }%
%TMPL:DEF{ATTACH:versions:header}%%TABLE{summary="%MAKETEXT{"Attachment history"}%"}%
| *%MAKETEXT{"Version"}%* | *%MAKETEXT{"Action"}%* | *%MAKETEXT{"Date"}%* | *%MAKETEXT{"Who"}%* | *%MAKETEXT{"Comment"}%* |
%TMPL:DEF{ATTACH:versions:header}%TMPL:P{
context="TablePluginEnabled"
then="ATTACH:tablemacro"
ATMATTRIBUTES=""
ATMCAPTION=""
ATMSUMMARY="%MAKETEXT{"Attachment history"}%"
}%| *%MAKETEXT{"Version"}%* | *%MAKETEXT{"Action"}%* | *%MAKETEXT{"Date"}%* | *%MAKETEXT{"Who"}%* | *%MAKETEXT{"Comment"}%* |
%TMPL:END%

%{ Row for versions table in attach screen }%
@@ -47,3 +62,6 @@

%{ Footer for versions table in attach screen }%
%TMPL:DEF{ATTACH:versions:footer}%%TMPL:END%

%TMPL:DEF{ATTACH:tablemacro}%%TABLE{%ATMATTRIBUTES% summary="%ATMSUMMARY%" caption="%ATMCAPTION%"}%"}%
%TMPL:END%

0 comments on commit 5fb828f

Please sign in to comment.
You can’t perform that action at this time.