X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprojects.tpl;h=92348e7ab921ed668e952d275ae411b61ce9f0db;hb=9c1005341a3db52333fcb732960acbdf03fbe4e7;hp=b04dc0907696abec1d8c1f5b7ffb838c154fa7f2;hpb=9e7fa54992c2053eaae351bf8d28160bfbedfd88;p=timetracker.git diff --git a/WEB-INF/templates/projects.tpl b/WEB-INF/templates/projects.tpl index b04dc090..92348e7a 100644 --- a/WEB-INF/templates/projects.tpl +++ b/WEB-INF/templates/projects.tpl @@ -5,24 +5,34 @@ - - + {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} {/if} + {if $active_projects} - - + {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} {$project.description|escape}{$i18n.label.edit}{$i18n.label.delete}{$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} {$project.description|escape}{$i18n.label.edit}{$i18n.label.delete}{$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} {$project.description|escape} + {if $show_files && $project.has_files} + {$i18n.label.files} + {/if} {/foreach} {/if}