This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 45175c23846eea659a0e49bf63755a725cd216c1 Author: Kevin Morin <morin@codelutin.com> Date: Mon Aug 7 15:39:12 2017 +0200 fixes #129 ajout d'un bouton "créer un sondage" dans l'entete --- pollen-ui-riot-js/src/main/web/i18n.json | 2 ++ .../src/main/web/tag/PollenHeader.tag.html | 24 +++++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/pollen-ui-riot-js/src/main/web/i18n.json b/pollen-ui-riot-js/src/main/web/i18n.json index 6f1aec5c..6584374d 100644 --- a/pollen-ui-riot-js/src/main/web/i18n.json +++ b/pollen-ui-riot-js/src/main/web/i18n.json @@ -228,6 +228,7 @@ "header_createOtherPoll": "Nouveau sondage standard", "header_createDatePoll": "Nouveau sondage de dates", "header_feedback": "Un bug, une remarque ?", + "header_newPoll" : "Nouveau sondage", "poll_cancel": "Annuler", "poll_description_next": "Suivant", "poll_description_info": "Informations", @@ -758,6 +759,7 @@ "header_myInvitedPolls": "Invited polls", "header_myParticipatedPolls": "Participated polls", "header_feedback": "Bug, observation ?", + "header_newPoll" : "Nouveau sondage", "header_polls": "Polls", "header_users": "Users", "header_myFavoriteLists": "My favorite lists", diff --git a/pollen-ui-riot-js/src/main/web/tag/PollenHeader.tag.html b/pollen-ui-riot-js/src/main/web/tag/PollenHeader.tag.html index 3dbdf8e9..9e540e82 100644 --- a/pollen-ui-riot-js/src/main/web/tag/PollenHeader.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/PollenHeader.tag.html @@ -25,6 +25,11 @@ require("./popup/FeedbackModal.tag.html"); <a class="header-home instance-title" href="#home" target="_top"></a> <div class="header-actions"> + <div> + <a class="header-link header-link--info" href="#/poll/new/text" title="{__.newPoll}"> + <i class="fa fa-plus"></i> <span class="action-label">{__.newPoll}</span> + </a> + </div> <div class="dropdown" if="{user && user.administrator}"> <a class="header-link"> <i class="fa fa-wrench"/> @@ -52,7 +57,7 @@ require("./popup/FeedbackModal.tag.html"); </div> <div if="{!user}"> - <a class="header-link" onclick="{signIn}"> + <a class="header-link" onclick="{signIn}" title="{__.signin}"> <i class="fa fa-sign-in" aria-hidden="true" /><span class="action-label">{__.signin}</span> </a> </div> @@ -147,10 +152,27 @@ require("./popup/FeedbackModal.tag.html"); cursor: pointer; } + .header-link--info { + background-color: var(--info); + } + + .header-link--info:hover { + background-color: var(--info-hover); + color: var(--header-link); + } + @media (max-width: 640px) { .user-name { display: none; } + + .header-home { + margin-left: 10px; + } + + .action-label { + display: none; + } } </style> </PollenHeader> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.