diff --git a/web/react/components/user_settings_modal.jsx b/web/react/components/user_settings_modal.jsx
index 1761e575a5..4210272440 100644
--- a/web/react/components/user_settings_modal.jsx
+++ b/web/react/components/user_settings_modal.jsx
@@ -30,8 +30,6 @@ module.exports = React.createClass({
tabs.push({name: "security", ui_name: "Security", icon: "glyphicon glyphicon-lock"});
tabs.push({name: "notifications", ui_name: "Notifications", icon: "glyphicon glyphicon-exclamation-sign"});
tabs.push({name: "appearance", ui_name: "Appearance", icon: "glyphicon glyphicon-wrench"});
- //tabs.push({name: "sessions", ui_name: "Sessions", icon: "glyphicon glyphicon-globe"});
- //tabs.push({name: "activity_log", ui_name: "Activity Log", icon: "glyphicon glyphicon-time"});
return (
diff --git a/web/react/pages/channel.jsx b/web/react/pages/channel.jsx
index f70d60e3af..cc78df120a 100644
--- a/web/react/pages/channel.jsx
+++ b/web/react/pages/channel.jsx
@@ -32,6 +32,8 @@ var ErrorBar = require('../components/error_bar.jsx')
var ChannelLoader = require('../components/channel_loader.jsx');
var MentionList = require('../components/mention_list.jsx');
var ChannelInfoModal = require('../components/channel_info_modal.jsx');
+var AccessHistoryModal = require('../components/access_history_modal.jsx');
+var ActivityLogModal = require('../components/activity_log_modal.jsx');
var Constants = require('../utils/constants.jsx');
@@ -205,4 +207,14 @@ global.window.setup_channel_page = function(team_name, team_type, team_id, chann
document.getElementById('edit_mention_tab')
);
+ React.render(
+
,
+ document.getElementById('access_history_modal')
+ );
+
+ React.render(
+
,
+ document.getElementById('activity_log_modal')
+ );
+
};
diff --git a/web/sass-files/sass/partials/_access-history.scss b/web/sass-files/sass/partials/_access-history.scss
new file mode 100644
index 0000000000..f54c9a1226
--- /dev/null
+++ b/web/sass-files/sass/partials/_access-history.scss
@@ -0,0 +1,29 @@
+.access-history__table {
+ display: table;
+ width: 100%;
+ padding-top: 15px;
+ line-height: 1.6;
+ &:first-child {
+ padding: 0;
+ }
+ > div {
+ display: table-cell;
+ vertical-align: top;
+ }
+ .access__date {
+ font-weight: 600;
+ font-size: 16px;
+ width: 190px;
+ }
+ .access__report {
+ border-bottom: 1px solid #ddd;
+ padding-bottom: 15px;
+ }
+ .report__time {
+ font-weight: 600;
+ font-size: 16px;
+ }
+ .report__info {
+ color: #999;
+ }
+}
\ No newline at end of file
diff --git a/web/sass-files/sass/partials/_activity-log.scss b/web/sass-files/sass/partials/_activity-log.scss
new file mode 100644
index 0000000000..36eb487503
--- /dev/null
+++ b/web/sass-files/sass/partials/_activity-log.scss
@@ -0,0 +1,31 @@
+.activity-log__table {
+ display: table;
+ width: 100%;
+ line-height: 1.8;
+ border-top: 1px solid #DDD;
+ padding: 15px 0;
+ &:first-child {
+ padding-top: 0;
+ border: none;
+ }
+ > div {
+ display: table-cell;
+ vertical-align: top;
+ }
+ .activity-log__report {
+ width: 80%;
+ }
+ .activity-log__action {
+ text-align: right;
+ }
+ .report__platform {
+ font-size: 16px;
+ font-weight: 600;
+ .fa {
+ margin-right: 6px;
+ }
+ }
+ .report__info {
+ color: #999;
+ }
+}
\ No newline at end of file
diff --git a/web/sass-files/sass/partials/_responsive.scss b/web/sass-files/sass/partials/_responsive.scss
index b3d3cd7eab..10e1d6c0f8 100644
--- a/web/sass-files/sass/partials/_responsive.scss
+++ b/web/sass-files/sass/partials/_responsive.scss
@@ -214,6 +214,12 @@
}
}
+@media (min-width: 992px){
+ .modal-lg {
+ width: 700px;
+ }
+}
+
@media screen and (min-width: 768px) {
.second-bar {
display: none;
@@ -252,11 +258,11 @@
}
}
}
- .post-header .post-header-col.post-header__reply {
- .dropdown-toggle:after {
- content: '...';
- }
- }
+ .post-header .post-header-col.post-header__reply {
+ .dropdown-toggle:after {
+ content: '...';
+ }
+ }
}
.signup-team__container {
padding: 30px 0;
@@ -640,6 +646,33 @@
padding: 9px 21px 10px 10px !important;
}
}
+@media screen and (max-width: 640px) {
+ .access-history__table {
+ > div {
+ display: block;
+ }
+ .access__report {
+ margin: 0 0 15px 15px;
+ }
+ .access__date {
+ div {
+ margin-bottom: 15px;
+ }
+ }
+ }
+ .activity-log__table {
+ > div {
+ display: block;
+ }
+ .activity-log__report {
+ width: 100%;
+ }
+ .activity-log__action {
+ text-align: left;
+ margin-top: 10px;
+ }
+ }
+}
@media screen and (max-width: 480px) {
.modal {
.modal-body {
diff --git a/web/sass-files/sass/partials/_settings.scss b/web/sass-files/sass/partials/_settings.scss
index e60bc290ec..b8dc9e9971 100644
--- a/web/sass-files/sass/partials/_settings.scss
+++ b/web/sass-files/sass/partials/_settings.scss
@@ -1,3 +1,6 @@
+@import "access-history";
+@import "activity-log";
+
.user-settings {
background: #fff;
min-height:300px;
@@ -32,6 +35,12 @@
display: table-cell;
vertical-align: top;
}
+ .security-links {
+ margin-right: 20px;
+ .fa {
+ margin-right: 6px;
+ }
+ }
.settings-links {
width: 180px;
background: #FAFAFA;
@@ -223,4 +232,4 @@
.color-btn {
margin:4px;
-}
+}
\ No newline at end of file
diff --git a/web/templates/channel.html b/web/templates/channel.html
index eaf0f2563b..8e856032d5 100644
--- a/web/templates/channel.html
+++ b/web/templates/channel.html
@@ -45,6 +45,8 @@
+
+