Compare commits

..

No commits in common. "fe0fcb0e106751a159040470c2c95ef204cc1f05" and "cbd0a41bce35fb159bc32e235c2b1e5917bbd461" have entirely different histories.

6 changed files with 16 additions and 18 deletions

View File

@ -1,7 +1,7 @@
from enum import Enum
from flask_login import AnonymousUserMixin
from app import db, login, mail, socketio
from app.email import create_message
from .anonymous_user import *
from .avatar import *
from .corpus_file import *
from .corpus_follower_association import *
@ -142,6 +142,14 @@ def job_after_update_handler(mapper, connection, job):
mail.send(msg)
class AnonymousUser(AnonymousUserMixin):
def can(self, permissions):
return False
@property
def is_administrator(self):
return False
login.anonymous_user = AnonymousUser

View File

@ -1,10 +0,0 @@
from flask_login import AnonymousUserMixin
class AnonymousUser(AnonymousUserMixin):
def can(self, permissions):
return False
@property
def is_administrator(self):
return False

View File

@ -95,7 +95,7 @@ nopaque.App = class App {
.filter((operation) => {return subRegExp.test(operation.path);});
for (let operation of subFilteredPatch) {
let [match, userId, jobId] = operation.path.match(subRegExp);
this.flash(`[<a href="/jobs/${jobId}">${this.data.users[userId].jobs[jobId].title}</a>] New status: <span class="job-status-text" data-job-status="${operation.value}"></span>`, 'job');
this.flash(`[<a href="/jobs/${jobId}">${this.data.users[userId].jobs[jobId].title}</a>] New status: <span class="job-status-text" data-status="${operation.value}"></span>`, 'job');
}
// Apply Patch

View File

@ -0,0 +1,5 @@
.clearfix::after {
clear: both;
content: "";
display: block;
}

View File

@ -1,9 +1,3 @@
.clearfix::after {
clear: both;
content: "";
display: block;
}
.clickable {
cursor: pointer !important;
}

View File

@ -9,6 +9,7 @@
// Components
@import "components/base-colors";
@import "components/clearfix";
@import "components/corpus-status-color";
@import "components/helpers.scss";
@import "components/job-status-color";