From 05aa5812adc84d62ddd418b02cd874a990c5ef63 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Tue, 9 May 2017 15:29:21 +0200 Subject: [PATCH] Better mobile UI The mobile UI is now more responsive, without grid in the details view. Clicking on a line in the flats table sends the user to the flat details. Also features better title descriptions and reactive title of the tab. --- flatisfy/web/js_src/components/flatstable.vue | 13 +++-- flatisfy/web/js_src/i18n/en/index.js | 7 +-- flatisfy/web/js_src/views/details.vue | 55 +++++++++++++------ flatisfy/web/js_src/views/home.vue | 2 + flatisfy/web/js_src/views/search.vue | 2 + flatisfy/web/js_src/views/status.vue | 14 ++++- flatisfy/web/static/index.html | 2 +- 7 files changed, 67 insertions(+), 28 deletions(-) diff --git a/flatisfy/web/js_src/components/flatstable.vue b/flatisfy/web/js_src/components/flatstable.vue index 75e837a..61e69ba 100644 --- a/flatisfy/web/js_src/components/flatstable.vue +++ b/flatisfy/web/js_src/components/flatstable.vue @@ -34,7 +34,7 @@ - + - + - + - - @@ -123,6 +123,9 @@ export default { this.sortBy = field } }, + showMore (flatId) { + this.$router.push({ name: 'details', params: { id: flatId }}) + }, capitalize: capitalize, range: range } diff --git a/flatisfy/web/js_src/i18n/en/index.js b/flatisfy/web/js_src/i18n/en/index.js index f6d6545..9856253 100644 --- a/flatisfy/web/js_src/i18n/en/index.js +++ b/flatisfy/web/js_src/i18n/en/index.js @@ -3,10 +3,11 @@ export default { 'flats': 'flat | flats', 'loading': 'Loading…', 'Actions': 'Actions', - 'More': 'More', + 'More_about': 'More about', 'Remove': 'Remove', 'Restore': 'Restore', - 'External_link': 'External link', + 'Original_post': 'Original post | Original posts', + 'Original_post_for': 'Original post for', 'Follow': 'Follow', 'Unfollow': 'Unfollow', 'Close': 'Close', @@ -43,8 +44,6 @@ export default { 'Location': 'Location', 'Contact': 'Contact', 'no_phone_found': 'No phone found', - 'Original_posts': 'Original posts:', - 'Original_post': 'Original post', 'rooms': 'room | rooms', 'bedrooms': 'bedroom | bedrooms' }, diff --git a/flatisfy/web/js_src/views/details.vue b/flatisfy/web/js_src/views/details.vue index 25f12ef..c4bd603 100644 --- a/flatisfy/web/js_src/views/details.vue +++ b/flatisfy/web/js_src/views/details.vue @@ -110,6 +110,7 @@ +

{{ $t("flatsDetails.Contact") }}

@@ -119,11 +120,11 @@ {{ $t("flatsDetails.no_phone_found") }}

-

{{ $t("flatsDetails.Original_posts") }} +

{{ $tc("common.Original_post", 42) }}