From: Nik Okuntseff Date: Fri, 15 Mar 2019 19:55:24 +0000 (+0000) Subject: Work in progress on project attachments. X-Git-Tag: timetracker_1.19-1~169 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cec2e1b0941c16302bedad01bfb8455baf13e0f8;p=timetracker.git Work in progress on project attachments. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 62ae7a5c..a476e805 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- + {if $show_files} + + {/if} @@ -21,6 +24,9 @@ + {if $show_files} + + {/if} @@ -42,6 +48,9 @@ + {if $show_files} + + {/if} @@ -49,6 +58,9 @@ + {if $show_files} + + {/if} @@ -68,12 +80,18 @@ + {if $show_files} + + {/if} {if $active_projects} {foreach $active_projects as $project} + {if $show_files} + + {/if} {/foreach} {/if} diff --git a/projects.php b/projects.php index 5b562366..97a86ba6 100644 --- a/projects.php +++ b/projects.php @@ -49,6 +49,7 @@ if($user->can('manage_projects')) { $smarty->assign('active_projects', $active_projects); $smarty->assign('inactive_projects', $inactive_projects); +$smarty->assign('show_files', $user->isPluginEnabled('at')); $smarty->assign('title', $i18n->get('title.projects')); $smarty->assign('content_page_name', 'projects.tpl'); $smarty->display('index.tpl');
 Anuko Time Tracker 1.18.58.4869 | Copyright © Anuko | +  Anuko Time Tracker 1.18.58.4870 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/projects.tpl b/WEB-INF/templates/projects.tpl index 58999365..0b400b11 100644 --- a/WEB-INF/templates/projects.tpl +++ b/WEB-INF/templates/projects.tpl @@ -13,6 +13,9 @@
{$i18n.label.thing_name} {$i18n.label.description}{$i18n.label.files}{$i18n.label.edit} {$i18n.label.delete}
{$project.name|escape} {$project.description|escape}{$i18n.label.view}{$i18n.label.edit} {$i18n.label.delete}
{$i18n.label.thing_name} {$i18n.label.description}{$i18n.label.files}{$i18n.label.edit} {$i18n.label.delete}
{$project.name|escape} {$project.description|escape}{$i18n.label.view}{$i18n.label.edit} {$i18n.label.delete}
{$i18n.label.thing_name} {$i18n.label.description}{$i18n.label.files}
{$project.name|escape} {$project.description|escape}{$i18n.label.view}