-{if $user->canManageTeam()}
+{if $user->can('manage_projects')}
{if $inactive_projects}
@@ -13,14 +13,20 @@
+ {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}
+ {$i18n.label.view} |
+ {/if}
{$i18n.label.edit} |
{$i18n.label.delete} |
@@ -31,7 +37,7 @@
@@ -42,13 +48,19 @@
+ {if $show_files}
+
+ {/if}
{foreach $inactive_projects as $project}
-
- {$project.name|escape:'html'} |
- {$project.description|escape:'html'} |
+
+ {$project.name|escape} |
+ {$project.description|escape} |
+ {if $show_files}
+ {$i18n.label.view} |
+ {/if}
{$i18n.label.edit} |
{$i18n.label.delete} |
@@ -58,7 +70,7 @@
@@ -68,12 +80,18 @@
+ {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}
+ {$i18n.label.view} |
+ {/if}
{/foreach}
{/if}
@@ -81,4 +99,4 @@
{/if}
-
\ No newline at end of file
+ |