fix for non existent user metatag searches, fixes for note styling

This commit is contained in:
albert
2013-02-21 13:34:43 -05:00
parent 2201e03604
commit 0ca97d4c00
2 changed files with 4 additions and 1 deletions

View File

@@ -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;

View File

@@ -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)}"