diff --git a/src/IDF/Middleware.php b/src/IDF/Middleware.php index 013929d..5e44abe 100644 --- a/src/IDF/Middleware.php +++ b/src/IDF/Middleware.php @@ -88,6 +88,7 @@ class IDF_Middleware 'showuser' => 'IDF_Template_ShowUser', 'ashowuser' => 'IDF_Template_AssignShowUser', 'appversion' => 'IDF_Template_AppVersion', + 'upload' => 'IDF_Template_Tag_UploadUrl', )); $params['modifiers'] = array_merge($params['modifiers'], array( diff --git a/src/IDF/Template/Tag/UploadUrl.php b/src/IDF/Template/Tag/UploadUrl.php new file mode 100644 index 0000000..a5461ff --- /dev/null +++ b/src/IDF/Template/Tag/UploadUrl.php @@ -0,0 +1,35 @@ + {if $submitter_data.avatar != ''} - + {else} {/if} diff --git a/src/IDF/templates/idf/review/view.html b/src/IDF/templates/idf/review/view.html index 462a275..d655083 100644 --- a/src/IDF/templates/idf/review/view.html +++ b/src/IDF/templates/idf/review/view.html @@ -109,7 +109,7 @@ to propose more contributions. {foreach $comments as $c}{ashowuser 'submitter', $c.get_submitter(), $request}{assign $submitter = $c.get_submitter()}{assign $submitter_data = $c.get_submitter_data()}
{if $user_data.avatar != ''} - + {else} {/if} |
---|