diff --git a/Gruntfile.js b/Gruntfile.js index 3aeeebc03b..9ee42790de 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -91,7 +91,7 @@ module.exports = function(grunt) { 'public/javascripts/Gallery/src/keyboard/*.js', 'public/javascripts/Gallery/src/validation/*.js', 'public/javascripts/Gallery/src/displays/*.js', - 'public/javascripts/Gallery/src/modal/*.js', + 'public/javascripts/Gallery/src/expandedview/*.js', 'public/javascripts/Gallery/src/*.js', 'public/javascripts/common/Panomarker.js', 'public/javascripts/common/GSVInfoPopover.js' diff --git a/app/models/daos/slick/UserDAOSlick.scala b/app/models/daos/slick/UserDAOSlick.scala index a7f1c8e9cc..e5024033e2 100644 --- a/app/models/daos/slick/UserDAOSlick.scala +++ b/app/models/daos/slick/UserDAOSlick.scala @@ -493,7 +493,7 @@ object UserDAOSlick { // Map(user_id: String -> (most_recent_sign_in_time: Option[Timestamp], sign_in_count: Int)). val signInTimesAndCounts = - WebpageActivityTable.activities.filter(_.activity inSet List("AnonAutoSignUp", "SignIn")) + WebpageActivityTable.activities.filter(row => row.activity === "AnonAutoSignUp" || (row.activity like "SignIn%")) .groupBy(_.userId).map{ case (_userId, group) => (_userId, group.map(_.timestamp).max, group.length) } .list.map{ case (_userId, _time, _count) => (_userId, (_time, _count)) }.toMap diff --git a/app/models/user/WebpageActivityTable.scala b/app/models/user/WebpageActivityTable.scala index 8ef052c1da..9e038db8ba 100644 --- a/app/models/user/WebpageActivityTable.scala +++ b/app/models/user/WebpageActivityTable.scala @@ -46,7 +46,7 @@ object WebpageActivityTable { */ def selectAllSignInCounts: List[(String, String, Int)] = db.withTransaction { implicit session => val signIns = for { - _activity <- activities if _activity.activity === "SignIn" + _activity <- activities if _activity.activity like "SignIn%" _userRole <- userRoles if _activity.userId === _userRole.userId _role <- roles if _userRole.roleId === _role.roleId if _role.role =!= "Anonymous" diff --git a/app/views/gallery.scala.html b/app/views/gallery.scala.html index 5fe71b2c08..8cedaf9be3 100644 --- a/app/views/gallery.scala.html +++ b/app/views/gallery.scala.html @@ -79,25 +79,25 @@
@Messages("validatio