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;
|
||||
border: 1px solid black;
|
||||
background: white;
|
||||
min-width: 5em;
|
||||
min-width: 10px;
|
||||
min-height: 1em;
|
||||
line-height: normal;
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
z-index: 1500;
|
||||
|
||||
@@ -241,6 +241,7 @@ class Tag < ActiveRecord::Base
|
||||
|
||||
when "user"
|
||||
q[:uploader_id] = User.name_to_id($2)
|
||||
q[:uploader_id] = -1 if q[:uploader_id].nil?
|
||||
|
||||
when "-approver"
|
||||
q[:approver_id_neg] ||= []
|
||||
@@ -248,6 +249,7 @@ class Tag < ActiveRecord::Base
|
||||
|
||||
when "approver"
|
||||
q[:approver_id] = User.name_to_id($2)
|
||||
q[:approver_id] = -1 if q[:approver_id].nil?
|
||||
|
||||
when "-pool"
|
||||
q[:tags][:exclude] << "pool:#{Pool.name_to_id($2)}"
|
||||
|
||||
Reference in New Issue
Block a user