X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprojects.tpl;h=81ef96b89f2b0efe5a9c488146437710ad8d317a;hb=13cfff28242767287408e8fd13d992bc6c6e2086;hp=59d356edae466a1604a34ec66d7a0e4060ef6f6e;hpb=a781da5661a1932521e0d1feb4be340b97edce9a;p=timetracker.git diff --git a/WEB-INF/templates/projects.tpl b/WEB-INF/templates/projects.tpl index 59d356ed..81ef96b8 100644 --- a/WEB-INF/templates/projects.tpl +++ b/WEB-INF/templates/projects.tpl @@ -5,7 +5,7 @@ - - + {if $show_files} + + {/if} + + {foreach $inactive_projects as $project} - - - - - + + + + {if $show_files} + {if $project.has_files} + + {else} + + {/if} + {/if} + + {/foreach}
-{if $user->canManageTeam()} +{if $user->can('manage_projects')} {if $inactive_projects} @@ -13,16 +13,26 @@ - - + {if $show_files} + + {/if} + + {if $active_projects} {foreach $active_projects as $project} - - - - - + + + + {if $show_files} + {if $project.has_files} + + {else} + + {/if} + {/if} + + {/foreach} {/if} @@ -31,7 +41,7 @@
{$i18n.form.projects.active_projects}
{$i18n.label.thing_name} {$i18n.label.description}{$i18n.label.edit}{$i18n.label.delete}
{$project.name|escape:'html'}{$project.description|escape:'html'}{$i18n.label.edit}{$i18n.label.delete}
{$project.name|escape}{$project.description|escape}{$i18n.label.files}{$i18n.label.files}{$i18n.label.edit}{$i18n.label.delete}

-
+
@@ -42,15 +52,25 @@
{$i18n.label.thing_name} {$i18n.label.description}{$i18n.label.edit}{$i18n.label.delete}
{$project.name|escape:'html'}{$project.description|escape:'html'}{$i18n.label.edit}{$i18n.label.delete}
{$project.name|escape}{$project.description|escape}{$i18n.label.files}{$i18n.label.files}{$i18n.label.edit}{$i18n.label.delete}
@@ -58,7 +78,7 @@

-
+
@@ -68,12 +88,18 @@ {$i18n.label.thing_name} {$i18n.label.description} + {if $show_files} + + {/if} {if $active_projects} {foreach $active_projects as $project} - - {$project.name|escape:'html'} - {$project.description|escape:'html'} + + {$project.name|escape} + {$project.description|escape} + {if $show_files && $project.has_files} + {$i18n.label.files} + {/if} {/foreach} {/if}