This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository mum. See http://git.chorem.org/mum.git commit c4b71869f1515b76f914a806ce215ecd52497d06 Author: Alexis Guilbaud <guilbaud@codelutin.com> Date: Fri Jun 26 14:43:45 2015 +0200 fullscreen updated + corrected sudoers add line --- debian/postinst | 2 +- install.sh | 2 +- views/dashboard.html | 28 ++++++++++++++++------------ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/debian/postinst b/debian/postinst index 6e2020f..c00beaf 100644 --- a/debian/postinst +++ b/debian/postinst @@ -30,7 +30,7 @@ fi # adding mum group to sudoers if not registered NB_MUM_SUDOERS=$(grep '^mum\s' /etc/sudoers | wc -l) if [ $NB_MUM_SUDOERS -eq 0 ]; then - echo 'mum ALL= /usr/bin/nmap' >> /etc/sudoers + echo 'mum ALL=(ALL) NOPASSWD: /usr/bin/nmap' >> /etc/sudoers echo "mum added to sudoers" fi diff --git a/install.sh b/install.sh index 849306a..36050d1 100755 --- a/install.sh +++ b/install.sh @@ -28,7 +28,7 @@ fi # adding mum group to sudoers if not registered NB_MUM_SUDOERS=$(grep '^mum\s' /etc/sudoers | wc -l) if [ $NB_MUM_SUDOERS -eq 0 ]; then - echo 'mum ALL= /usr/bin/nmap' >> /etc/sudoers + echo 'mum ALL=(ALL) NOPASSWD: /usr/bin/nmap' >> /etc/sudoers echo "mum added to sudoers" fi diff --git a/views/dashboard.html b/views/dashboard.html index ef21814..9996add 100644 --- a/views/dashboard.html +++ b/views/dashboard.html @@ -1,23 +1,27 @@ <div class="col-md-offset-2 main"> - <h1 class="page-header">Dashboard</h1> - - <input type="radio" value="host_view" ng-model="view"> Host view - <input type="radio" value="group_view" ng-model="view" ng-click="update_group_obj()"> Group view - - <button type="button" class="btn" aria-label="Fullscreen" - popover-placement="bottom" - popover="Enable/Disable fullscreen" - popover-trigger="mouseenter" - ng-click="set_fullscreen(!fullscreen)"> + <h1 class="page-header">Dashboard + <small><button type="button" class="btn" aria-label="Fullscreen" + popover-placement="bottom" + popover="Fullscreen" + popover-trigger="mouseenter" + ng-click="set_fullscreen(!fullscreen)"> <span class="fa fa-expand" aria-hidden="true"> </span> - </button> + </button></small> + </h1> + + <div ng-show="!fullscreen"> + <input type="radio" value="host_view" ng-model="view"> Host view + <input type="radio" value="group_view" ng-model="view" ng-click="update_group_obj()"> Group view + </div> + <!-- Host view --> <div ng-show="view == 'host_view' && items.length > 0"> - <h2 class="sub-header">Hosts currently on monitoring</h2> + <h2 class="sub-header" + ng-show="!fullscreen">Hosts currently on monitoring</h2> <div class="row" ng-show="items.length > 0"> <div ng-show="!fullscreen"> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.