X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprojects.tpl;h=92348e7ab921ed668e952d275ae411b61ce9f0db;hb=HEAD;hp=dafe1d8d5df61293b404bbead37185ca09142a87;hpb=336dbb39dfa588646615c461e3f16b785998ea67;p=timetracker.git diff --git a/WEB-INF/templates/projects.tpl b/WEB-INF/templates/projects.tpl index dafe1d8d..92348e7a 100644 --- a/WEB-INF/templates/projects.tpl +++ b/WEB-INF/templates/projects.tpl @@ -10,22 +10,26 @@ {if $inactive_projects} {$i18n.form.projects.active_projects} {/if} + {if $active_projects} {$i18n.label.thing_name} {$i18n.label.description} - {if $show_files} + {if $show_files} - {/if} + {/if} - {if $active_projects} {foreach $active_projects as $project} {$project.name|escape} {$project.description|escape} {if $show_files} + {if $project.has_files} {$i18n.label.files} + {else} + {$i18n.label.files} + {/if} {/if} {$i18n.label.edit} {$i18n.label.delete} @@ -59,7 +63,11 @@ {$project.name|escape} {$project.description|escape} {if $show_files} + {if $project.has_files} {$i18n.label.files} + {else} + {$i18n.label.files} + {/if} {/if} {$i18n.label.edit} {$i18n.label.delete} @@ -81,7 +89,7 @@ {$i18n.label.thing_name} {$i18n.label.description} {if $show_files} - {$i18n.label.files} + {/if} {if $active_projects} @@ -89,8 +97,8 @@ {$project.name|escape} {$project.description|escape} - {if $show_files} - {$i18n.label.view} + {if $show_files && $project.has_files} + {$i18n.label.files} {/if} {/foreach}