fix for non existent user metatag searches, fixes for note styling
This commit is contained in:
@@ -6,8 +6,9 @@ div#note-container {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
background: white;
|
background: white;
|
||||||
min-width: 5em;
|
min-width: 10px;
|
||||||
min-height: 1em;
|
min-height: 1em;
|
||||||
|
line-height: normal;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
z-index: 1500;
|
z-index: 1500;
|
||||||
|
|||||||
@@ -241,6 +241,7 @@ class Tag < ActiveRecord::Base
|
|||||||
|
|
||||||
when "user"
|
when "user"
|
||||||
q[:uploader_id] = User.name_to_id($2)
|
q[:uploader_id] = User.name_to_id($2)
|
||||||
|
q[:uploader_id] = -1 if q[:uploader_id].nil?
|
||||||
|
|
||||||
when "-approver"
|
when "-approver"
|
||||||
q[:approver_id_neg] ||= []
|
q[:approver_id_neg] ||= []
|
||||||
@@ -248,6 +249,7 @@ class Tag < ActiveRecord::Base
|
|||||||
|
|
||||||
when "approver"
|
when "approver"
|
||||||
q[:approver_id] = User.name_to_id($2)
|
q[:approver_id] = User.name_to_id($2)
|
||||||
|
q[:approver_id] = -1 if q[:approver_id].nil?
|
||||||
|
|
||||||
when "-pool"
|
when "-pool"
|
||||||
q[:tags][:exclude] << "pool:#{Pool.name_to_id($2)}"
|
q[:tags][:exclude] << "pool:#{Pool.name_to_id($2)}"
|
||||||
|
|||||||
Reference in New Issue
Block a user