From a05bbc4d7ef148719be97481185ccf23c8292b94 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 17 Jun 2016 18:07:20 +0200 Subject: [PATCH] SONAR-7229 apply feedback --- .../src/main/js/apps/account/account.css | 4 +- .../js/apps/account/projects/ProjectCard.js | 40 +++++++++---------- .../main/js/apps/account/projects/Projects.js | 15 +++++-- .../apps/account/projects/ProjectsSearch.js | 10 ++--- .../resources/org/sonar/l10n/core.properties | 1 + 5 files changed, 40 insertions(+), 30 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/account/account.css b/server/sonar-web/src/main/js/apps/account/account.css index d8ff05b231c..b2a1839311c 100644 --- a/server/sonar-web/src/main/js/apps/account/account.css +++ b/server/sonar-web/src/main/js/apps/account/account.css @@ -45,7 +45,7 @@ } .account-projects { - max-width: 600px; + max-width: 960px; } .account-projects-list > li + li { @@ -105,7 +105,7 @@ } .account-project-links { - margin-top: 4px; + margin-top: 6px; } .account-project-key { diff --git a/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.js b/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.js index b5cffd8ec44..f7d7556da81 100644 --- a/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.js +++ b/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.js @@ -37,7 +37,7 @@ export default class ProjectCard extends React.Component { const links = sortBy(project.links, 'type'); return ( -
+
@@ -79,9 +66,22 @@ export default class ProjectCard extends React.Component { - {project.qualityGate != null && ( -
- + {links.length > 0 && ( +
+
    + {links.map(link => ( +
  • + + + +
  • + ))} +
)} diff --git a/server/sonar-web/src/main/js/apps/account/projects/Projects.js b/server/sonar-web/src/main/js/apps/account/projects/Projects.js index d5d89fc8776..b77242df8cc 100644 --- a/server/sonar-web/src/main/js/apps/account/projects/Projects.js +++ b/server/sonar-web/src/main/js/apps/account/projects/Projects.js @@ -38,13 +38,22 @@ export default class Projects extends React.Component { return (
- +
+

+ My Projects +

+
+ +
+
+ {translate('my_account.projects.description')} +
+
{projects.length === 0 && (
{translate('no_results')} -
+
)} {projects.length > 0 && ( diff --git a/server/sonar-web/src/main/js/apps/account/projects/ProjectsSearch.js b/server/sonar-web/src/main/js/apps/account/projects/ProjectsSearch.js index ad8dacd9414..b0250ecafe7 100644 --- a/server/sonar-web/src/main/js/apps/account/projects/ProjectsSearch.js +++ b/server/sonar-web/src/main/js/apps/account/projects/ProjectsSearch.js @@ -46,7 +46,7 @@ export default class ProjectsSearch extends React.Component { render () { return ( -
+
- - {translateWithParameters( - 'my_account.projects.x_characters_min', 3)} - +
+ {translateWithParameters( + 'my_account.projects.x_characters_min', 3)} +
); diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index f1fdd1b9ac9..d1b10427309 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -2122,6 +2122,7 @@ my_account.issue_widget.by_severity=My Issues by Severity my_account.to_fix=To Fix my_account.to_review=To Review my_account.projects=Projects +my_account.projects.description=On those projects you have the "Administer" permission. my_account.projects.analyzed_x=Analyzed {0} my_account.projects.never_analyzed=Never analyzed my_account.projects.x_characters_min=({0} characters min) -- 2.39.5