X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprojects.tpl;h=92348e7ab921ed668e952d275ae411b61ce9f0db;hb=dc799619007c9eafdec69a70f89a2d08bb10864c;hp=0b400b119ff5a8418ed6971c84ff1739789d48fb;hpb=cec2e1b0941c16302bedad01bfb8455baf13e0f8;p=timetracker.git diff --git a/WEB-INF/templates/projects.tpl b/WEB-INF/templates/projects.tpl index 0b400b11..92348e7a 100644 --- a/WEB-INF/templates/projects.tpl +++ b/WEB-INF/templates/projects.tpl @@ -10,25 +10,29 @@ {if $inactive_projects} {$i18n.form.projects.active_projects} {/if} + {if $active_projects} {$i18n.label.thing_name} {$i18n.label.description} - {if $show_files} - {$i18n.label.files} - {/if} - {$i18n.label.edit} - {$i18n.label.delete} + {if $show_files} + + {/if} + + - {if $active_projects} {foreach $active_projects as $project} {$project.name|escape} {$project.description|escape} {if $show_files} - {$i18n.label.view} + {if $project.has_files} + {$i18n.label.files} + {else} + {$i18n.label.files} + {/if} {/if} - {$i18n.label.edit} - {$i18n.label.delete} + {$i18n.label.edit} + {$i18n.label.delete} {/foreach} {/if} @@ -49,20 +53,24 @@ {$i18n.label.thing_name} {$i18n.label.description} {if $show_files} - {$i18n.label.files} + {/if} - {$i18n.label.edit} - {$i18n.label.delete} + + {foreach $inactive_projects as $project} {$project.name|escape} {$project.description|escape} {if $show_files} - {$i18n.label.view} + {if $project.has_files} + {$i18n.label.files} + {else} + {$i18n.label.files} + {/if} {/if} - {$i18n.label.edit} - {$i18n.label.delete} + {$i18n.label.edit} + {$i18n.label.delete} {/foreach} @@ -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}