mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:14:44 -04:00
Minor fixes
This commit is contained in:
parent
85d94b5a36
commit
d5669fdbf9
@ -206,7 +206,7 @@ class AccountController extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($new_plan)) {
|
if (!empty($new_plan) && $new_plan['plan'] != PLAN_FREE) {
|
||||||
$time_used = $planDetails['paid']->diff(date_create());
|
$time_used = $planDetails['paid']->diff(date_create());
|
||||||
$days_used = $time_used->days;
|
$days_used = $time_used->days;
|
||||||
|
|
||||||
@ -1320,12 +1320,14 @@ class AccountController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$account = Auth::user()->account;
|
$account = Auth::user()->account;
|
||||||
|
$invitation = $invoice->invitations->first();
|
||||||
|
|
||||||
// replace the variables with sample data
|
// replace the variables with sample data
|
||||||
$data = [
|
$data = [
|
||||||
'account' => $account,
|
'account' => $account,
|
||||||
'invoice' => $invoice,
|
'invoice' => $invoice,
|
||||||
'invitation' => $invoice->invitations->first(),
|
'invitation' => $invitation,
|
||||||
|
'link' => $invitation->getLink(),
|
||||||
'client' => $invoice->client,
|
'client' => $invoice->client,
|
||||||
'amount' => $invoice->amount
|
'amount' => $invoice->amount
|
||||||
];
|
];
|
||||||
|
@ -39,6 +39,13 @@ class AccountGatewayController extends BaseController
|
|||||||
return $this->accountGatewayService->getDatatable(Auth::user()->account_id);
|
return $this->accountGatewayService->getDatatable(Auth::user()->account_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function show($publicId)
|
||||||
|
{
|
||||||
|
Session::reflash();
|
||||||
|
|
||||||
|
return Redirect::to("gateways/$publicId/edit");
|
||||||
|
}
|
||||||
|
|
||||||
public function edit($publicId)
|
public function edit($publicId)
|
||||||
{
|
{
|
||||||
$accountGateway = AccountGateway::scope($publicId)->firstOrFail();
|
$accountGateway = AccountGateway::scope($publicId)->firstOrFail();
|
||||||
|
@ -309,6 +309,10 @@ Route::get('/forgot', function() {
|
|||||||
Route::get('/feed', function() {
|
Route::get('/feed', function() {
|
||||||
return Redirect::to(NINJA_WEB_URL.'/feed', 301);
|
return Redirect::to(NINJA_WEB_URL.'/feed', 301);
|
||||||
});
|
});
|
||||||
|
Route::get('/comments/feed', function() {
|
||||||
|
return Redirect::to(NINJA_WEB_URL.'/comments/feed', 301);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
if (!defined('CONTACT_EMAIL')) {
|
if (!defined('CONTACT_EMAIL')) {
|
||||||
define('CONTACT_EMAIL', Config::get('mail.from.address'));
|
define('CONTACT_EMAIL', Config::get('mail.from.address'));
|
||||||
|
@ -226,6 +226,10 @@
|
|||||||
var hash = window.location.hash;
|
var hash = window.location.hash;
|
||||||
$(hash).modal('toggle');
|
$(hash).modal('toggle');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@if (Request::input('upgrade'))
|
||||||
|
showChangePlan();
|
||||||
|
@endif
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@stop
|
@stop
|
@ -423,7 +423,7 @@
|
|||||||
@if (!Auth::user()->registered)
|
@if (!Auth::user()->registered)
|
||||||
{!! Button::success(trans('texts.sign_up'))->withAttributes(array('id' => 'signUpButton', 'data-toggle'=>'modal', 'data-target'=>'#signUpModal', 'style' => 'max-width:100px;;overflow:hidden'))->small() !!}
|
{!! Button::success(trans('texts.sign_up'))->withAttributes(array('id' => 'signUpButton', 'data-toggle'=>'modal', 'data-target'=>'#signUpModal', 'style' => 'max-width:100px;;overflow:hidden'))->small() !!}
|
||||||
@elseif (Utils::isNinjaProd() && (!Auth::user()->isPro() || Auth::user()->isTrial()))
|
@elseif (Utils::isNinjaProd() && (!Auth::user()->isPro() || Auth::user()->isTrial()))
|
||||||
{!! Button::success(trans('texts.go_pro'))->withAttributes(array('id' => 'proPlanButton', 'onclick' => 'showProPlan("")', 'style' => 'max-width:100px;overflow:hidden'))->small() !!}
|
{!! Button::success(trans('texts.plan_upgrade'))->asLinkTo(url('/settings/account_management?upgrade=true'))->withAttributes(array('style' => 'max-width:100px;overflow:hidden'))->small() !!}
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user