Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Code cleanup.
James Cole17a8c4918c79
diff --git a/app/Http/Controllers/AttachmentController.php b/app/Http/Controllers/AttachmentController.phpindex fe4a03b7bc..ac255e3783 100644--- a/app/Http/Controllers/AttachmentController.php+++ b/app/Http/Controllers/AttachmentController.php@@ -124,7 +124,7 @@ class AttachmentController extends Controller*/public function preview(Attachment $attachment){- if($attachment->mime == 'application/pdf') {+ if ($attachment->mime == 'application/pdf') {$file = public_path('images/page_white_acrobat.png');} else {$file = public_path('images/page_green.png');diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.phpindex 796da63c97..03a9a8d31c 100644--- a/app/Http/Controllers/Controller.php+++ b/app/Http/Controllers/Controller.php@@ -6,7 +6,6 @@ use Illuminate\Foundation\Bus\DispatchesJobs;use Illuminate\Foundation\Validation\ValidatesRequests;use Illuminate\Routing\Controller as BaseController;use Preferences;-use Session;use View;/**diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.phpindex b3d5f2ecf9..9b9c5bef5e 100644--- a/app/Http/Controllers/HomeController.php+++ b/app/Http/Controllers/HomeController.php@@ -1,5 +1,6 @@<?php namespace FireflyIII\Http\Controllers;+use Artisan;use Auth;use Carbon\Carbon;use Config;@@ -11,7 +12,7 @@ use Preferences;use Route;use Session;use Steam;-use Artisan;+/*** Class HomeController*diff --git a/app/Http/routes.php b/app/Http/routes.phpindex 8d6e301a9d..17307916dc 100644--- a/app/Http/routes.php+++ b/app/Http/routes.php@@ -193,7 +193,6 @@ Route::group(Route::post('/accounts/destroy/{account}', ['uses' => 'AccountController@destroy', 'as' => 'accounts.destroy']);-/*** Attachment Controller*/diff --git a/app/Models/PiggyBank.php b/app/Models/PiggyBank.phpindex 57f7cc261b..33f6be11c4 100644--- a/app/Models/PiggyBank.php+++ b/app/Models/PiggyBank.php@@ -38,7 +38,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\PiggyBank whereRemindMe($value)* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\PiggyBank whereReminderSkip($value)* @property-read \FireflyIII\Models\PiggyBankRepetition $currentRep- * @property string $reminder+ * @property string $reminder* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\PiggyBank whereReminder($value)*/class PiggyBank extends Modeldiff --git a/app/Models/TransactionJournal.php b/app/Models/TransactionJournal.phpindex b1f3d44f95..b9e7b436b3 100644--- a/app/Models/TransactionJournal.php+++ b/app/Models/TransactionJournal.php@@ -68,7 +68,7 @@ use Watson\Validating\ValidatingTrait;* @property-read int $account_id* @property-read string $name* @property-read string $symbol- * @property-read \Illuminate\Database\Eloquent\Collection|\FireflyIII\Models\Attachment[] $attachments+ * @property-read \Illuminate\Database\Eloquent\Collection|\FireflyIII\Models\Attachment[] $attachments*/class TransactionJournal extends Model{diff --git a/app/Repositories/Attachment/AttachmentRepository.php b/app/Repositories/Attachment/AttachmentRepository.phpindex 5ae2b899fb..13f7f8f0a0 100644--- a/app/Repositories/Attachment/AttachmentRepository.php+++ b/app/Repositories/Attachment/AttachmentRepository.php@@ -12,6 +12,21 @@ use FireflyIII\Models\Attachment;class AttachmentRepository implements AttachmentRepositoryInterface{+ /**+ * @param Attachment $attachment+ *+ * @return bool+ */+ public function destroy(Attachment $attachment)+ {+ /** @var \FireflyIII\Helpers\Attachments\AttachmentHelperInterface $helper */+ $helper = app('FireflyIII\Helpers\Attachments\AttachmentHelperInterface');++ $file = $helper->getAttachmentLocation($attachment);+ unlink($file);+ $attachment->delete();+ }+/*** @param Attachment $attachment* @param array $data@@ -29,19 +44,4 @@ class AttachmentRepository implements AttachmentRepositoryInterfacereturn $attachment;}-- /**- * @param Attachment $attachment- *- * @return bool- */- public function destroy(Attachment $attachment)- {- /** @var \FireflyIII\Helpers\Attachments\AttachmentHelperInterface $helper */- $helper = app('FireflyIII\Helpers\Attachments\AttachmentHelperInterface');-- $file = $helper->getAttachmentLocation($attachment);- unlink($file);- $attachment->delete();- }}diff --git a/app/Repositories/Attachment/AttachmentRepositoryInterface.php b/app/Repositories/Attachment/AttachmentRepositoryInterface.phpindex 9998ce9d8f..44ae352b15 100644--- a/app/Repositories/Attachment/AttachmentRepositoryInterface.php+++ b/app/Repositories/Attachment/AttachmentRepositoryInterface.php@@ -14,17 +14,17 @@ interface AttachmentRepositoryInterface/*** @param Attachment $attachment- * @param array $attachmentData*- * @return Attachment+ * @return bool*/- public function update(Attachment $attachment, array $attachmentData);+ public function destroy(Attachment $attachment);/*** @param Attachment $attachment+ * @param array $attachmentData*- * @return bool+ * @return Attachment*/- public function destroy(Attachment $attachment);+ public function update(Attachment $attachment, array $attachmentData);}diff --git a/app/Support/Steam.php b/app/Support/Steam.phpindex 4f49117f7b..02a89deccd 100644--- a/app/Support/Steam.php+++ b/app/Support/Steam.php@@ -96,7 +96,7 @@ class Steam** @return int*/- public function phpBytes($string)+ public function phpBytes($string){$string = strtolower($string);diff --git a/app/User.php b/app/User.phpindex 1a5b93ffbb..2fd0ae8fdf 100644--- a/app/User.php+++ b/app/User.php@@ -33,10 +33,10 @@ use Zizaco\Entrust\Traits\EntrustUserTrait;* @method static \Illuminate\Database\Query\Builder|\FireflyIII\User wherePassword($value)* @method static \Illuminate\Database\Query\Builder|\FireflyIII\User whereReset($value)* @method static \Illuminate\Database\Query\Builder|\FireflyIII\User whereRememberToken($value)- * @property boolean $blocked- * @property-read \Illuminate\Database\Eloquent\Collection|\FireflyIII\Models\Attachment[] $attachments+ * @property boolean $blocked+ * @property-read \Illuminate\Database\Eloquent\Collection|\FireflyIII\Models\Attachment[] $attachments* @method static \Illuminate\Database\Query\Builder|\FireflyIII\User whereBlocked($value)- * @property string $blocked_code+ * @property string $blocked_code* @method static \Illuminate\Database\Query\Builder|\FireflyIII\User whereBlockedCode($value)*/class User extends Model implements AuthenticatableContract, CanResetPasswordContract@@ -49,7 +49,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon** @var array*/- protected $fillable = ['email', 'password','blocked','blocked_code'];+ protected $fillable = ['email', 'password', 'blocked', 'blocked_code'];/*** The attributes excluded from the model's JSON form.*diff --git a/config/twigbridge.php b/config/twigbridge.phpindex ee32836a9e..04826b5504 100644--- a/config/twigbridge.php+++ b/config/twigbridge.php@@ -145,12 +145,12 @@ return ['ExpandedForm' => ['is_safe' => ['date', 'text', 'select', 'balance', 'optionsList', 'checkbox', 'amount', 'tags', 'integer', 'textarea', 'location',- 'multiRadio','file','multiCheckbox','staticText'+ 'multiRadio', 'file', 'multiCheckbox', 'staticText']],'Form' => ['is_safe' => [- 'input', 'select', 'checkbox', 'model', 'open', 'radio', 'textarea','file'+ 'input', 'select', 'checkbox', 'model', 'open', 'radio', 'textarea', 'file']],],diff --git a/database/migrations/2015_07_14_204645_changes_for_v349.php b/database/migrations/2015_07_14_204645_changes_for_v349.phpindex 2cd99ab8c4..3f2538c339 100644--- a/database/migrations/2015_07_14_204645_changes_for_v349.php+++ b/database/migrations/2015_07_14_204645_changes_for_v349.php@@ -8,6 +8,16 @@ use Illuminate\Database\Schema\Blueprint;*/class ChangesForV349 extends Migration{+ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ //+ }+/*** Run the migrations.*@@ -22,14 +32,4 @@ class ChangesForV349 extends Migration});}-- /**- * Reverse the migrations.- *- * @return void- */- public function down()- {- //- }}diff --git a/database/migrations/2015_07_17_190438_changes_for_v3410.php b/database/migrations/2015_07_17_190438_changes_for_v3410.phpindex 33aafe2a19..c8e64213d9 100644--- a/database/migrations/2015_07_17_190438_changes_for_v3410.php+++ b/database/migrations/2015_07_17_190438_changes_for_v3410.php@@ -8,6 +8,17 @@ use Illuminate\Database\Schema\Blueprint;*/class ChangesForV3410 extends Migration{+ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::drop('attachments');++ }+/*** Run the migrations.*@@ -42,16 +53,4 @@ class ChangesForV3410 extends Migration});}--- /**- * Reverse the migrations.- *- * @return void- */- public function down()- {- Schema::drop('attachments');-- }}diff --git a/resources/lang/en/form.php b/resources/lang/en/form.phpindex b25407d9f9..37a0df20a1 100644--- a/resources/lang/en/form.php+++ b/resources/lang/en/form.php@@ -2,102 +2,102 @@return [// new user:- 'bank_name' => 'Bank name',- 'bank_balance' => 'Balance',- 'savings_balance' => 'Savings balance',- 'credit_card_limit' => 'Credit card limit',+ 'bank_name' => 'Bank name',+ 'bank_balance' => 'Balance',+ 'savings_balance' => 'Savings balance',+ 'credit_card_limit' => 'Credit card limit',- 'name' => 'Name',- 'active' => 'Active',- 'amount_min' => 'Minimum amount',- 'amount_max' => 'Maximum amount',- 'match' => 'Matches on',- 'repeat_freq' => 'Repeats',- 'account_from_id' => 'From account',- 'account_to_id' => 'To account',- 'account_id' => 'Asset account',- 'budget_id' => 'Budget',- 'openingBalance' => 'Opening balance',- 'tagMode' => 'Tag mode',- 'tagPosition' => 'Tag location',- 'virtualBalance' => 'Virtual balance',- 'longitude_latitude' => 'Location',- 'targetamount' => 'Target amount',- 'accountRole' => 'Account role',- 'openingBalanceDate' => 'Opening balance date',- 'ccType' => 'Credit card payment plan',- 'ccMonthlyPaymentDate' => 'Credit card monthly payment date',- 'piggy_bank_id' => 'Piggy bank',- 'returnHere' => 'Return here',- 'returnHereExplanation' => 'After storing, return here to create another one.',- 'returnHereUpdateExplanation' => 'After updating, return here.',- 'description' => 'Description',- 'expense_account' => 'Expense account',- 'revenue_account' => 'Revenue account',- 'amount' => 'Amount',- 'date' => 'Date',- 'category' => 'Category',- 'tags' => 'Tags',- 'deletePermanently' => 'Delete permanently',- 'cancel' => 'Cancel',- 'targetdate' => 'Target date',- 'tag' => 'Tag',- 'under' => 'Under',- 'symbol' => 'Symbol',- 'code' => 'Code',- 'iban' => 'IBAN',- 'csv' => 'CSV file',- 'has_headers' => 'Headers',- 'date_format' => 'Date format',- 'csv_config' => 'CSV import configuration',- 'specifix' => 'Bank- or file specific fixes',- 'csv_import_account' => 'Default import account',- 'attachments[]' => 'Attachments',- 'store_new_withdrawal' => 'Store new withdrawal',- 'store_new_deposit' => 'Store new deposit',- 'store_new_transfer' => 'Store new transfer',- 'add_new_withdrawal' => 'Add a new withdrawal',- 'add_new_deposit' => 'Add a new deposit',- 'add_new_transfer' => 'Add a new transfer',- 'noPiggybank' => '(no piggy bank)',- 'noBudget' => '(no budget)',- 'title' => 'Title',- 'notes' => 'Notes',- 'filename' => 'File name',- 'mime' => 'Mime type',- 'size' => 'Size',+ 'name' => 'Name',+ 'active' => 'Active',+ 'amount_min' => 'Minimum amount',+ 'amount_max' => 'Maximum amount',+ 'match' => 'Matches on',+ 'repeat_freq' => 'Repeats',+ 'account_from_id' => 'From account',+ 'account_to_id' => 'To account',+ 'account_id' => 'Asset account',+ 'budget_id' => 'Budget',+ 'openingBalance' => 'Opening balance',+ 'tagMode' => 'Tag mode',+ 'tagPosition' => 'Tag location',+ 'virtualBalance' => 'Virtual balance',+ 'longitude_latitude' => 'Location',+ 'targetamount' => 'Target amount',+ 'accountRole' => 'Account role',+ 'openingBalanceDate' => 'Opening balance date',+ 'ccType' => 'Credit card payment plan',+ 'ccMonthlyPaymentDate' => 'Credit card monthly payment date',+ 'piggy_bank_id' => 'Piggy bank',+ 'returnHere' => 'Return here',+ 'returnHereExplanation' => 'After storing, return here to create another one.',+ 'returnHereUpdateExplanation' => 'After updating, return here.',+ 'description' => 'Description',+ 'expense_account' => 'Expense account',+ 'revenue_account' => 'Revenue account',+ 'amount' => 'Amount',+ 'date' => 'Date',+ 'category' => 'Category',+ 'tags' => 'Tags',+ 'deletePermanently' => 'Delete permanently',+ 'cancel' => 'Cancel',+ 'targetdate' => 'Target date',+ 'tag' => 'Tag',+ 'under' => 'Under',+ 'symbol' => 'Symbol',+ 'code' => 'Code',+ 'iban' => 'IBAN',+ 'csv' => 'CSV file',+ 'has_headers' => 'Headers',+ 'date_format' => 'Date format',+ 'csv_config' => 'CSV import configuration',+ 'specifix' => 'Bank- or file specific fixes',+ 'csv_import_account' => 'Default import account',+ 'attachments[]' => 'Attachments',+ 'store_new_withdrawal' => 'Store new withdrawal',+ 'store_new_deposit' => 'Store new deposit',+ 'store_new_transfer' => 'Store new transfer',+ 'add_new_withdrawal' => 'Add a new withdrawal',+ 'add_new_deposit' => 'Add a new deposit',+ 'add_new_transfer' => 'Add a new transfer',+ 'noPiggybank' => '(no piggy bank)',+ 'noBudget' => '(no budget)',+ 'title' => 'Title',+ 'notes' => 'Notes',+ 'filename' => 'File name',+ 'mime' => 'Mime type',+ 'size' => 'Size',- 'delete_account' => 'Delete account ":name"',- 'delete_bill' => 'Delete bill ":name"',- 'delete_budget' => 'Delete budget ":name"',- 'delete_category' => 'Delete category ":name"',- 'delete_currency' => 'Delete currency ":name"',- 'delete_piggyBank' => 'Delete piggy bank ":name"',- 'delete_journal' => 'Delete transaction with description ":description"',- 'delete_attachment' => 'Delete attachment ":name"',+ 'delete_account' => 'Delete account ":name"',+ 'delete_bill' => 'Delete bill ":name"',+ 'delete_budget' => 'Delete budget ":name"',+ 'delete_category' => 'Delete category ":name"',+ 'delete_currency' => 'Delete currency ":name"',+ 'delete_piggyBank' => 'Delete piggy bank ":name"',+ 'delete_journal' => 'Delete transaction with description ":description"',+ 'delete_attachment' => 'Delete attachment ":name"',- 'attachment_areYouSure' => 'Are you sure you want to delete the attachment named ":name"?',- 'account_areYouSure' => 'Are you sure you want to delete the account named ":name"?',- 'bill_areYouSure' => 'Are you sure you want to delete the bill named ":name"?',- 'budget_areYouSure' => 'Are you sure you want to delete the budget named ":name"?',- 'category_areYouSure' => 'Are you sure you want to delete the category named ":name"?',- 'currency_areYouSure' => 'Are you sure you want to delete the currency named ":name"?',- 'piggyBank_areYouSure' => 'Are you sure you want to delete the piggy bank named ":name"?',- 'journal_areYouSure' => 'Are you sure you want to delete the transaction described ":description"?',- 'tag_areYouSure' => 'Are you sure you want to delete the tag ":tag"?',+ 'attachment_areYouSure' => 'Are you sure you want to delete the attachment named ":name"?',+ 'account_areYouSure' => 'Are you sure you want to delete the account named ":name"?',+ 'bill_areYouSure' => 'Are you sure you want to delete the bill named ":name"?',+ 'budget_areYouSure' => 'Are you sure you want to delete the budget named ":name"?',+ 'category_areYouSure' => 'Are you sure you want to delete the category named ":name"?',+ 'currency_areYouSure' => 'Are you sure you want to delete the currency named ":name"?',+ 'piggyBank_areYouSure' => 'Are you sure you want to delete the piggy bank named ":name"?',+ 'journal_areYouSure' => 'Are you sure you want to delete the transaction described ":description"?',+ 'tag_areYouSure' => 'Are you sure you want to delete the tag ":tag"?',- 'permDeleteWarning' => 'Deleting stuff from Firely is permanent and cannot be undone.',- 'also_delete_transactions' => 'The only transaction connected to this account will be deleted as well.' .- '|All :count transactions connected to this account will be deleted as well.',- 'also_delete_piggyBanks' => 'The only piggy bank connected to this account will be deleted as well.' .- '|All :count piggy bank connected to this account will be deleted as well.',- 'bill_keep_transactions' => 'The only transaction connected to this bill will not be deleted.' .- '|All :count transactions connected to this bill will spared deletion.',- 'budget_keep_transactions' => 'The only transaction connected to this budget will not be deleted.' .- '|All :count transactions connected to this budget will spared deletion.',- 'category_keep_transactions' => 'The only transaction connected to this category will not be deleted.' .- '|All :count transactions connected to this category will spared deletion.',- 'tag_keep_transactions' => 'The only transaction connected to this tag will not be deleted.' .- '|All :count transactions connected to this tag will spared deletion.',+ 'permDeleteWarning' => 'Deleting stuff from Firely is permanent and cannot be undone.',+ 'also_delete_transactions' => 'The only transaction connected to this account will be deleted as well.' .+ '|All :count transactions connected to this account will be deleted as well.',+ 'also_delete_piggyBanks' => 'The only piggy bank connected to this account will be deleted as well.' .+ '|All :count piggy bank connected to this account will be deleted as well.',+ 'bill_keep_transactions' => 'The only transaction connected to this bill will not be deleted.' .+ '|All :count transactions connected to this bill will spared deletion.',+ 'budget_keep_transactions' => 'The only transaction connected to this budget will not be deleted.' .+ '|All :count transactions connected to this budget will spared deletion.',+ 'category_keep_transactions' => 'The only transaction connected to this category will not be deleted.' .+ '|All :count transactions connected to this category will spared deletion.',+ 'tag_keep_transactions' => 'The only transaction connected to this tag will not be deleted.' .+ '|All :count transactions connected to this tag will spared deletion.',];diff --git a/resources/twig/accounts/delete.twig b/resources/twig/accounts/delete.twigindex a3ccf25444..81b16c4b4b 100644--- a/resources/twig/accounts/delete.twig+++ b/resources/twig/accounts/delete.twig@@ -30,9 +30,11 @@{{ Lang.choice('form.also_delete_piggyBanks', account.piggyBanks|length, {count: account.piggyBanks|length}) }}{% endif %}</p>+<p class="text-success">{{ 'save_transactions_by_moving'|_ }}</p>+<p>{{ Form.select('move_account_before_delete', accountList, null, {class: 'form-control'}) }}</p>diff --git a/resources/twig/accounts/show.twig b/resources/twig/accounts/show.twigindex b61f7ccce7..278701207e 100644--- a/resources/twig/accounts/show.twig+++ b/resources/twig/accounts/show.twig@@ -25,7 +25,7 @@</div><div class="box-body">{% if Config.get('firefly.chart') == 'google' %}- <div id="overview-chart"></div>+ <div id="overview-chart"></div>{% endif %}{% if Config.get('firefly.chart') == 'chartjs' %}<canvas id="overview-chart" style="width:100%;height:400px;"></canvas>diff --git a/resources/twig/attachments/edit.twig b/resources/twig/attachments/edit.twigindex 515168b2ab..9ca2c1139f 100644--- a/resources/twig/attachments/edit.twig+++ b/resources/twig/attachments/edit.twig@@ -55,6 +55,5 @@</div>-</form>{% endblock %}diff --git a/resources/twig/auth/register.twig b/resources/twig/auth/register.twigindex 98e69fa60d..1855e5f248 100644--- a/resources/twig/auth/register.twig+++ b/resources/twig/auth/register.twig@@ -18,8 +18,8 @@<div class="register-box-body"><p class="login-box-msg">Register a new account</p>{% if host == 'geld.nder.be' %}- <p class="text-info login-box-msg">Please note that an account on this site will only- work for one (1) week.</p>+ <p class="text-info login-box-msg">Please note that an account on this site will only+ work for one (1) week.</p>{% endif %}<form role="form" id="register" method="POST" action="{{ URL.to('/auth/register') }}">diff --git a/resources/twig/csv/process.twig b/resources/twig/csv/process.twigindex 32a0da3ae3..86c5d474e9 100644--- a/resources/twig/csv/process.twig+++ b/resources/twig/csv/process.twig@@ -44,9 +44,9 @@{% if journals|length > 0 %}<ul>- {% for journal in journals %}- <li>#{{ journal.id }}: <a href="{{ route('transactions.show', [journal.id]) }}">{{ journal.description }}</a></li>- {% endfor %}+ {% for journal in journals %}+ <li>#{{ journal.id }}: <a href="{{ route('transactions.show', [journal.id]) }}">{{ journal.description }}</a></li>+ {% endfor %}</ul>{% endif %}diff --git a/resources/twig/emails/registered-html.twig b/resources/twig/emails/registered-html.twigindex 712dbcf45c..a776c2299a 100644--- a/resources/twig/emails/registered-html.twig+++ b/resources/twig/emails/registered-html.twig@@ -54,6 +54,7 @@}}+</script></body>diff --git a/resources/twig/errors/503.twig b/resources/twig/errors/503.twigindex d5f1296a46..365a8698e3 100644--- a/resources/twig/errors/503.twig+++ b/resources/twig/errors/503.twig@@ -42,8 +42,8 @@(function (i, s, o, g, r, a, m) {i['GoogleAnalyticsObject'] = r;i[r] = i[r] || function () {- (i[r].q = i[r].q || []).push(arguments)- }, i[r].l = 1 * new Date();+ (i[r].q = i[r].q || []).push(arguments)+ }, i[r].l = 1 * new Date();a = s.createElement(o),m = s.getElementsByTagName(o)[0];a.async = 1;diff --git a/resources/twig/json/tour.twig b/resources/twig/json/tour.twigindex 8eaf91e9a7..8b3c415190 100644--- a/resources/twig/json/tour.twig+++ b/resources/twig/json/tour.twig@@ -1,12 +1,14 @@<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3>+<div class="popover-content"></div><div class="popover-navigation"><div class="btn-group"><button class="btn btn-sm btn-default" data-role="prev">« {{ 'prev'|_ }}</button><button class="btn btn-sm btn-default" data-role="next">{{ 'prev'|_ }} »</button>- <button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="{{ 'pause'|_ }}" data-resume-text="Resume"> {{ 'pause'|_ }}</button>+ <button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="{{ 'pause'|_ }}"+ data-resume-text="Resume"> {{ 'pause'|_ }}</button></div><button class="btn btn-sm btn-default" data-role="end">{{ 'end-tour'|_ }}</button></div>diff --git a/resources/twig/layout/default.twig b/resources/twig/layout/default.twigindex a8abecfe1b..4347a4956d 100644--- a/resources/twig/layout/default.twig+++ b/resources/twig/layout/default.twig@@ -191,8 +191,8 @@(function (i, s, o, g, r, a, m) {i['GoogleAnalyticsObject'] = r;i[r] = i[r] || function () {- (i[r].q = i[r].q || []).push(arguments)- }, i[r].l = 1 * new Date();+ (i[r].q = i[r].q || []).push(arguments)+ }, i[r].l = 1 * new Date();a = s.createElement(o),m = s.getElementsByTagName(o)[0];a.async = 1;diff --git a/resources/twig/layout/empty.twig b/resources/twig/layout/empty.twigindex c27f63e493..b3d3a1458c 100644--- a/resources/twig/layout/empty.twig+++ b/resources/twig/layout/empty.twig@@ -51,8 +51,8 @@(function (i, s, o, g, r, a, m) {i['GoogleAnalyticsObject'] = r;i[r] = i[r] || function () {- (i[r].q = i[r].q || []).push(arguments)- }, i[r].l = 1 * new Date();+ (i[r].q = i[r].q || []).push(arguments)+ }, i[r].l = 1 * new Date();a = s.createElement(o),m = s.getElementsByTagName(o)[0];a.async = 1;diff --git a/resources/twig/layout/guest.twig b/resources/twig/layout/guest.twigindex 6b64dff171..1063bf4d98 100644--- a/resources/twig/layout/guest.twig+++ b/resources/twig/layout/guest.twig@@ -52,8 +52,8 @@(function (i, s, o, g, r, a, m) {i['GoogleAnalyticsObject'] = r;i[r] = i[r] || function () {- (i[r].q = i[r].q || []).push(arguments)- }, i[r].l = 1 * new Date();+ (i[r].q = i[r].q || []).push(arguments)+ }, i[r].l = 1 * new Date();a = s.createElement(o),m = s.getElementsByTagName(o)[0];a.async = 1;diff --git a/resources/twig/list/journals.twig b/resources/twig/list/journals.twigindex 51512123c6..f517ecec8c 100644--- a/resources/twig/list/journals.twig+++ b/resources/twig/list/journals.twig@@ -53,7 +53,8 @@<td><a href="{{ route('transactions.show',journal.id) }}" title="{{ journal.description }}">{{ journal.description }}</a>{% if journal.attachments|length > 0 %}- <i class="fa fa-paperclip pull-right" title="{{ Lang.choice('firefly.nr_of_attachments', journal.attachments|length, {count: journal.attachments|length}) }}"></i>+ <i class="fa fa-paperclip pull-right"+ title="{{ Lang.choice('firefly.nr_of_attachments', journal.attachments|length, {count: journal.attachments|length}) }}"></i>{% endif %}</td>diff --git a/resources/twig/partials/menu-sidebar.twig b/resources/twig/partials/menu-sidebar.twigindex 136d7fdc0d..3c900ab06d 100644--- a/resources/twig/partials/menu-sidebar.twig+++ b/resources/twig/partials/menu-sidebar.twig@@ -124,9 +124,9 @@<a class="{{ activeRoutePartial('currency') }}" href="{{ route('currency.index') }}"><i class="fa fa-usd fa-fw"></i> {{ 'currencies'|_ }}</a></li>{% if Config.get('firefly.csv_import_enabled') %}- <li class="{{ activeRoutePartial('csv') }}">- <a href="{{ route('csv.index') }}"><i class="fa fa-file-text-o fa-fw"></i> {{ 'csv_import'|_ }}</a>- </li>+ <li class="{{ activeRoutePartial('csv') }}">+ <a href="{{ route('csv.index') }}"><i class="fa fa-file-text-o fa-fw"></i> {{ 'csv_import'|_ }}</a>+ </li>{% endif %}</ul>diff --git a/resources/twig/tags/delete.twig b/resources/twig/tags/delete.twigindex eeb035ee93..ca1a79c8fe 100644--- a/resources/twig/tags/delete.twig+++ b/resources/twig/tags/delete.twig@@ -16,6 +16,7 @@<p class="text-danger">{{ trans('form.permDeleteWarning') }}</p>+<p>{{ trans('form.tag_areYouSure', {'tag': tag.tag}) }}</p>diff --git a/resources/twig/tags/index.twig b/resources/twig/tags/index.twigindex ea12e8c116..5da35bc9bd 100644--- a/resources/twig/tags/index.twig+++ b/resources/twig/tags/index.twig@@ -21,7 +21,7 @@</p><p>- {{'tags_group'|_ }}+ {{ 'tags_group'|_ }}</p><p>diff --git a/resources/twig/transactions/show.twig b/resources/twig/transactions/show.twigindex 15c14a1ba7..c87273dd1b 100644--- a/resources/twig/transactions/show.twig+++ b/resources/twig/transactions/show.twig@@ -93,7 +93,7 @@</td><td><i class="fa {{ att.mime|mimeIcon }}"></i>- <a href="{{ route('attachments.download', att.id) }}" tle="{{ att.filename }}">+ <a href="{{ route('attachments.download', att.id) }}" tle="{{ att.filename }}">{% if att.title %}{{ att.title }}{% else %}