mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-27 03:44:19 +00:00
Compare commits
No commits in common. "fe0fcb0e106751a159040470c2c95ef204cc1f05" and "cbd0a41bce35fb159bc32e235c2b1e5917bbd461" have entirely different histories.
fe0fcb0e10
...
cbd0a41bce
@ -1,7 +1,7 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
from flask_login import AnonymousUserMixin
|
||||||
from app import db, login, mail, socketio
|
from app import db, login, mail, socketio
|
||||||
from app.email import create_message
|
from app.email import create_message
|
||||||
from .anonymous_user import *
|
|
||||||
from .avatar import *
|
from .avatar import *
|
||||||
from .corpus_file import *
|
from .corpus_file import *
|
||||||
from .corpus_follower_association import *
|
from .corpus_follower_association import *
|
||||||
@ -142,6 +142,14 @@ def job_after_update_handler(mapper, connection, job):
|
|||||||
mail.send(msg)
|
mail.send(msg)
|
||||||
|
|
||||||
|
|
||||||
|
class AnonymousUser(AnonymousUserMixin):
|
||||||
|
def can(self, permissions):
|
||||||
|
return False
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_administrator(self):
|
||||||
|
return False
|
||||||
|
|
||||||
login.anonymous_user = AnonymousUser
|
login.anonymous_user = AnonymousUser
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
|
@ -95,7 +95,7 @@ nopaque.App = class App {
|
|||||||
.filter((operation) => {return subRegExp.test(operation.path);});
|
.filter((operation) => {return subRegExp.test(operation.path);});
|
||||||
for (let operation of subFilteredPatch) {
|
for (let operation of subFilteredPatch) {
|
||||||
let [match, userId, jobId] = operation.path.match(subRegExp);
|
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
|
// Apply Patch
|
||||||
|
5
app/static/sass/components/_clearfix.scss
Normal file
5
app/static/sass/components/_clearfix.scss
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.clearfix::after {
|
||||||
|
clear: both;
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
}
|
@ -1,9 +1,3 @@
|
|||||||
.clearfix::after {
|
|
||||||
clear: both;
|
|
||||||
content: "";
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.clickable {
|
.clickable {
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
// Components
|
// Components
|
||||||
@import "components/base-colors";
|
@import "components/base-colors";
|
||||||
|
@import "components/clearfix";
|
||||||
@import "components/corpus-status-color";
|
@import "components/corpus-status-color";
|
||||||
@import "components/helpers.scss";
|
@import "components/helpers.scss";
|
||||||
@import "components/job-status-color";
|
@import "components/job-status-color";
|
||||||
|
Loading…
Reference in New Issue
Block a user