1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Show 'Pro' label when on trial

This commit is contained in:
Hillel Coren 2016-10-31 12:59:48 +02:00
parent eca4d7ce6a
commit bf6fd23aea
2 changed files with 7 additions and 2 deletions

View File

@ -163,6 +163,11 @@ class Utils
return Auth::check() && Auth::user()->isTrial();
}
public static function isPaidPro()
{
return static::isPro() && ! static::isTrial();
}
public static function isEnglish()
{
return App::getLocale() == 'en';
@ -652,7 +657,7 @@ class Utils
return Utils::getYear($offset);
}
}
public static function getMonthOptions()
{
$months = [];

View File

@ -16,7 +16,7 @@
<div class="panel panel-default">
<div class="panel-heading" style="color:white">
{{ trans("texts.{$type}") }}
@if ($type === ADVANCED_SETTINGS && !Utils::isPro())
@if ($type === ADVANCED_SETTINGS && ! Utils::isPaidPro())
<sup>{{ strtoupper(trans('texts.pro')) }}</sup>
@endif
</div>