Paulo Reis hace 8 años
padre
commit
663ca275cb

+ 2 - 2
services/web/app/views/project/editor/history/previewPanelV2.pug

@@ -45,7 +45,7 @@
 			text="history.diff.text",
 			text="history.diff.text",
 			highlights="history.diff.highlights",
 			highlights="history.diff.highlights",
 			read-only="true",
 			read-only="true",
-			resize-on="layout:main:resize",
+			resize-on="layout:main:resize,history:toggle",
 			navigate-highlights="true"
 			navigate-highlights="true"
 		)
 		)
 		.alert.alert-info(ng-if="history.diff.binary")
 		.alert.alert-info(ng-if="history.diff.binary")
@@ -70,7 +70,7 @@
 			font-size="settings.fontSize",
 			font-size="settings.fontSize",
 			text="history.selectedFile.text",
 			text="history.selectedFile.text",
 			read-only="true",
 			read-only="true",
-			resize-on="layout:main:resize",
+			resize-on="layout:main:resize,history:toggle",
 		)
 		)
 		.alert.alert-info(ng-if="history.selectedFile.binary")
 		.alert.alert-info(ng-if="history.selectedFile.binary")
 			| We're still working on showing image and binary changes, sorry. Stay tuned!
 			| We're still working on showing image and binary changes, sorry. Stay tuned!

+ 4 - 4
services/web/app/views/project/editor/history/toolbarV2.pug

@@ -11,7 +11,7 @@
 		time.history-toolbar-time {{ history.selection.updates[0].meta.end_ts | formatDate:'Do MMM YYYY, h:mm a' }}
 		time.history-toolbar-time {{ history.selection.updates[0].meta.end_ts | formatDate:'Do MMM YYYY, h:mm a' }}
 	span.history-toolbar-selected-version(
 	span.history-toolbar-selected-version(
 		ng-show="!history.loadingFileTree && history.showOnlyLabels && history.selection.label"
 		ng-show="!history.loadingFileTree && history.showOnlyLabels && history.selection.label"
-	) Browsing project version labelled 
+	) #{translate("browsing_project_labelled")} 
 		span.history-toolbar-selected-label "{{ history.selection.label.comment }}"
 		span.history-toolbar-selected-label "{{ history.selection.label.comment }}"
 	div.history-toolbar-actions
 	div.history-toolbar-actions
 		button.history-toolbar-btn(
 		button.history-toolbar-btn(
@@ -31,9 +31,9 @@
 	.history-toolbar-entries-list
 	.history-toolbar-entries-list
 		toggle-switch(
 		toggle-switch(
 			ng-model="history.showOnlyLabels"
 			ng-model="history.showOnlyLabels"
-			label-true="Labels"
-			label-false="All history"
-			description="Show all of the project history or only labelled versions."
+			label-true=translate("history_view_labels")
+			label-false=translate("history_view_all")
+			description=translate("history_view_a11y_description")
 		)
 		)
 
 
 script(type="text/ng-template", id="historyV2AddLabelModalTemplate")
 script(type="text/ng-template", id="historyV2AddLabelModalTemplate")