Internationalize Views::History templates
This commit is contained in:
@@ -8,3 +8,14 @@ en:
|
|||||||
revert: Revert Changes
|
revert: Revert Changes
|
||||||
precious/views/error:
|
precious/views/error:
|
||||||
error: Error
|
error: Error
|
||||||
|
precious/views/history:
|
||||||
|
browse_in_history_description: Browse the page at this point in the history
|
||||||
|
compare_revisions: Compare Revisions
|
||||||
|
history_for: History for
|
||||||
|
pagination:
|
||||||
|
aria:
|
||||||
|
label: Pagination
|
||||||
|
next_page: Next page
|
||||||
|
previous_page: Previous page
|
||||||
|
next: Next
|
||||||
|
previous: Previous
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<h1 class="header-title text-center text-md-left py-4">
|
<h1 class="header-title text-center text-md-left py-4">
|
||||||
<span class="f1-light text-gray-light">
|
<span class="f1-light text-gray-light">
|
||||||
History for
|
{{t.history_for}}
|
||||||
</span>
|
</span>
|
||||||
{{name}}
|
{{name}}
|
||||||
</h1>
|
</h1>
|
||||||
@@ -14,32 +14,41 @@
|
|||||||
|
|
||||||
{{>pagination}}
|
{{>pagination}}
|
||||||
|
|
||||||
<form name="selection-form" id="selection-form" method="get" action="{{compare_path}}/{{escaped_url_path}}"></form>
|
<form name="selection-form" id="selection-form" method="get" action="{{compare_path}}/{{escaped_url_path}}"></form>
|
||||||
|
|
||||||
<div id="page-history-list" class="Box Box--condensed flex-auto">
|
<div id="page-history-list" class="Box Box--condensed flex-auto">
|
||||||
<form id="version-form">
|
<form id="version-form">
|
||||||
<ul>
|
<ul>
|
||||||
{{#versions}}
|
{{#versions}}
|
||||||
<li class="Box-row border-top Box-row--hover-gray d-flex flex-items-center">
|
<li class="Box-row border-top Box-row--hover-gray d-flex flex-items-center">
|
||||||
<span class="pr-2"><input class="checkbox" type="checkbox" name="versions[]" value="{{id}}"></span>
|
<span class="pr-2"><input class="checkbox" type="checkbox" name="versions[]" value="{{id}}"></span>
|
||||||
<span class="float-left col-2" id="user-icons">{{>author_template}}</span>
|
<span class="float-left col-2" id="user-icons">{{>author_template}}</span>
|
||||||
<time class="flex-auto col-1 text-gray-light" datetime="{{datetime}}" data-format="{{date_format}}">{{date}}</time>
|
<time class="flex-auto col-1 text-gray-light" datetime="{{datetime}}" data-format="{{date_format}}">{{date}}</time>
|
||||||
<span class="flex-auto col-5">{{message}}</span>
|
<span class="flex-auto col-5">{{message}}</span>
|
||||||
<span class="pl-4 float-right">
|
<span class="pl-4 float-right">
|
||||||
<a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a>
|
<a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a>
|
||||||
<a href="{{href_page}}" title="Browse the page at this point in the history" class="btn btn-outline">{{#octicon}}code{{/octicon}}</a>
|
<a
|
||||||
</span>
|
class="btn btn-outline"
|
||||||
</li>
|
href="{{href_page}}"
|
||||||
{{/versions}}
|
title="{{t.browse_in_history_description}}"
|
||||||
</ul>
|
>
|
||||||
</form>
|
{{#octicon}}code{{/octicon}}
|
||||||
</div>
|
</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
{{/versions}}
|
||||||
|
</ul>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="footer">
|
||||||
|
<div class="pt-4">
|
||||||
<div id="footer">
|
<button
|
||||||
<div class="pt-4">
|
class="btn btn-sm action-compare-revision"
|
||||||
<button class="btn btn-sm action-compare-revision" type="submit">Compare Revisions</button>
|
type="submit"
|
||||||
</div>
|
>
|
||||||
</div>
|
{{t.compare_revisions}}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,23 @@
|
|||||||
<nav class="paginate-container" aria-label="Pagination">
|
<nav class="paginate-container" aria-label="{{t.pagination.aria.label}}">
|
||||||
<div class="pagination" id="pagination">
|
<div class="pagination" id="pagination">
|
||||||
<a id="prev" href="?page_num={{previous_page}}{{query_string}}" class="previous_page {{^previous_page}}disabled{{/previous_page}}">Previous</span>
|
<a
|
||||||
<a id="next" href="?page_num={{next_page}}{{query_string}}" class="next_page {{^next_page}}disabled{{/next_page}}" rel="next" aria-label="Next Page">Next</a>
|
aria-label="{{t.pagination.aria.previous_page}}"
|
||||||
|
class="previous_page {{^previous_page}}disabled{{/previous_page}}"
|
||||||
|
href="?page_num={{previous_page}}{{query_string}}"
|
||||||
|
id="prev"
|
||||||
|
rel="prev"
|
||||||
|
>
|
||||||
|
{{t.pagination.previous}}
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a
|
||||||
|
aria-label="{{t.pagination.aria.next_page}}"
|
||||||
|
class="next_page {{^next_page}}disabled{{/next_page}}"
|
||||||
|
href="?page_num={{next_page}}{{query_string}}"
|
||||||
|
id="next"
|
||||||
|
rel="next"
|
||||||
|
>
|
||||||
|
{{t.pagination.next}}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
Reference in New Issue
Block a user