From 9898d4bb1d4b32ce0ee4ad05acb65fd25d140c92 Mon Sep 17 00:00:00 2001
From: Garret Alfert
Date: Fri, 29 Nov 2019 18:05:52 +0100
Subject: [PATCH 1/2] Show contributor/contribution details on mobile
Refs #163
On small screens, when selecting a contribution or contributor, the
lists are hidden and only the details are shown.
---
app/styles/components/_contribution-details.scss | 11 ++++++++++-
app/templates/dashboard/contributions/show.hbs | 4 ++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/app/styles/components/_contribution-details.scss b/app/styles/components/_contribution-details.scss
index 80c04b6..49dfb27 100644
--- a/app/styles/components/_contribution-details.scss
+++ b/app/styles/components/_contribution-details.scss
@@ -84,5 +84,14 @@ section#contribution-details {
}
}
}
-
+}
+
+// On small screens, hide contributor and contributions list when
+// showing details
+@include media-max(small) {
+ #dashboard.with-details {
+ #contributions, #stats {
+ display: none;
+ }
+ }
}
diff --git a/app/templates/dashboard/contributions/show.hbs b/app/templates/dashboard/contributions/show.hbs
index 73a1de2..9760897 100644
--- a/app/templates/dashboard/contributions/show.hbs
+++ b/app/templates/dashboard/contributions/show.hbs
@@ -42,7 +42,7 @@
kredits will be issued.
- {{link-to "Re-submit contribution …" "contributions.resubmit" model class="button small green"}}.
+ {{link-to "Re-submit contribution …" "contributions.resubmit" model class="button small green"}}
{{/if}}
@@ -50,7 +50,7 @@
- {{link-to "Copy & edit as new" "contributions.resubmit" model class="button small"}}.
+ {{link-to "Copy & edit as new" "contributions.resubmit" model class="button small"}}
{{#if model.ipfsHash}}
From 256197094ea3fd57c5192d51ee1dcaa07f633f4e Mon Sep 17 00:00:00 2001
From: Garret Alfert
Date: Thu, 28 Nov 2019 21:59:07 +0100
Subject: [PATCH 2/2] Don't show intro text on details page
---
app/styles/components/_contribution-details.scss | 5 ++++-
app/templates/dashboard.hbs | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/app/styles/components/_contribution-details.scss b/app/styles/components/_contribution-details.scss
index 49dfb27..5cdc1e9 100644
--- a/app/styles/components/_contribution-details.scss
+++ b/app/styles/components/_contribution-details.scss
@@ -86,7 +86,7 @@ section#contribution-details {
}
}
-// On small screens, hide contributor and contributions list when
+// On small screens, hide intro text, contributor and contributions list when
// showing details
@include media-max(small) {
#dashboard.with-details {
@@ -94,4 +94,7 @@ section#contribution-details {
display: none;
}
}
+ #intro.with-details {
+ display: none;
+ }
}
diff --git a/app/templates/dashboard.hbs b/app/templates/dashboard.hbs
index 4aba212..6a5b81f 100644
--- a/app/templates/dashboard.hbs
+++ b/app/templates/dashboard.hbs
@@ -1,5 +1,5 @@
{{#if showIntroText}}
-
+
Welcome to the contribution dashboard of the
Kosmos project!