mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Replace uri with url
This commit is contained in:
@@ -125,10 +125,10 @@
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
var showAll = {% if periods|length > 0 %}false{% else %}true{% endif %};
|
||||
|
||||
var categoryChartUri = '{{ route('chart.transactions.categories', [objectType, start.format('Y-m-d'), end.format('Y-m-d')]) }}';
|
||||
var budgetChartUri = '{{ route('chart.transactions.budgets', [start.format('Y-m-d'), end.format('Y-m-d')]) }}';
|
||||
var destinationChartUri = '{{ route('chart.transactions.destinationAccounts', [objectType, start.format('Y-m-d'), end.format('Y-m-d')]) }}';
|
||||
var sourceChartUri = '{{ route('chart.transactions.sourceAccounts', [objectType, start.format('Y-m-d'), end.format('Y-m-d')]) }}';
|
||||
var categoryChartUrl = '{{ route('chart.transactions.categories', [objectType, start.format('Y-m-d'), end.format('Y-m-d')]) }}';
|
||||
var budgetChartUrl = '{{ route('chart.transactions.budgets', [start.format('Y-m-d'), end.format('Y-m-d')]) }}';
|
||||
var destinationChartUrl = '{{ route('chart.transactions.destinationAccounts', [objectType, start.format('Y-m-d'), end.format('Y-m-d')]) }}';
|
||||
var sourceChartUrl = '{{ route('chart.transactions.sourceAccounts', [objectType, start.format('Y-m-d'), end.format('Y-m-d')]) }}';
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
|
||||
|
||||
@@ -295,12 +295,12 @@
|
||||
<td>{{ trans('list.'~metaField) }}</td>
|
||||
<td>
|
||||
{% if 'external_url' == metaField %}
|
||||
{% set uri = journalGetMetaField(journal.transaction_journal_id, metaField) %}
|
||||
<a href="{{ uri }}" rel="noopener noreferrer nofollow" target="_blank">
|
||||
{% if uri|length > 60 %}
|
||||
{{ uri|slice(0, 60) ~ '...' }}
|
||||
{% set url = journalGetMetaField(journal.transaction_journal_id, metaField) %}
|
||||
<a href="{{ url }}" rel="noopener noreferrer nofollow" target="_blank">
|
||||
{% if url|length > 60 %}
|
||||
{{ url|slice(0, 60) ~ '...' }}
|
||||
{% else %}
|
||||
{{ uri }}
|
||||
{{ url }}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
@@ -425,9 +425,9 @@
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
var modalDialogURI = '{{ route('transactions.link.modal', ['%JOURNAL%']) }}';
|
||||
var acURI = '{{ route('api.v1.autocomplete.transactions-with-id') }}';
|
||||
var groupURI = '{{ route('transactions.show',['%GROUP%']) }}';
|
||||
var modalDialogURL = '{{ route('transactions.link.modal', ['%JOURNAL%']) }}';
|
||||
var acURL = '{{ route('api.v1.autocomplete.transactions-with-id') }}';
|
||||
var groupURL = '{{ route('transactions.show',['%GROUP%']) }}';
|
||||
var cloneGroupUrl = '{{ route('transactions.clone') }}';
|
||||
|
||||
$('.switch-link').on('click', switchLink);
|
||||
|
||||
Reference in New Issue
Block a user