02a3544590
- change model.Notebook.sql_search_notes() to be a static method - take a first_notebook_id argument and a user_id argument - join user_notebook on notebook_id and matches on user_notebook.user_id instead of notebook_id - order by notebook_id = first_notebook desc, rank instead of just rank - include search result for notebooks readable by anonymous user, but only if such a notebook is given as first_notebook_id - update code that calls model.Notebook.sql_search_notes() - update model.Note.to_dict() to include notebook_id - modify Wiki.display_search_results() - separate search results for the current notebook and results for all other notebooks - indicate which notebook each result is from - if there are results in other notebooks but no results in the current notebook, indicate that clearly - when you click on a result note link in the current notebook, it should simply open a new note - when you click on a result note link in another notebook, it should open in a new window - test in IE - update unit tests for: - controller.Notebooks.search() - model.Notebook.sql_search_notes() - model.Note.to_dict()
150 lines
1.8 KiB
CSS
150 lines
1.8 KiB
CSS
body {
|
|
padding: 1em;
|
|
line-height: 140%;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
a[target ^= "_new"] {
|
|
background: url(/static/images/web_icon_tiny.png) right center no-repeat;
|
|
padding-right: 13px;
|
|
}
|
|
|
|
.diff a[target ^= "_new"] {
|
|
background-image: none;
|
|
padding-right: 0;
|
|
}
|
|
|
|
a:hover {
|
|
color: #ff6600;
|
|
}
|
|
|
|
h3 {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
ins {
|
|
color: green;
|
|
text-decoration: none;
|
|
}
|
|
|
|
ins a {
|
|
color: green;
|
|
}
|
|
|
|
del {
|
|
color: red;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
del a {
|
|
color: red;
|
|
}
|
|
|
|
hr {
|
|
border: 0;
|
|
color: #000000;
|
|
background-color: #000000;
|
|
height: 1px;
|
|
}
|
|
|
|
.button {
|
|
border-style: outset;
|
|
border-width: 0px;
|
|
background-color: #d0e0f0;
|
|
font-size: 100%;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: #ffcc66;
|
|
}
|
|
|
|
.revoke_button {
|
|
border-style: outset;
|
|
border-width: 0px;
|
|
background-color: #d0e0f0;
|
|
font-size: 90%;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.revoke_button:hover {
|
|
background-color: #ffcc66;
|
|
}
|
|
|
|
.text_field {
|
|
margin-top: 0.25em;
|
|
padding: 0.25em;
|
|
border: #999999 1px solid;
|
|
}
|
|
|
|
.textarea_field {
|
|
margin-top: 0.25em;
|
|
padding: 0.25em;
|
|
border: #999999 1px solid;
|
|
overflow: auto;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
ul li {
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
ol li {
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
.center_text {
|
|
text-align: center;
|
|
}
|
|
|
|
.small_text {
|
|
padding-top: 0.5em;
|
|
font-size: 90%;
|
|
}
|
|
|
|
.radio_label {
|
|
color: #000000;
|
|
}
|
|
|
|
.radio_label:hover {
|
|
color: #ff6600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.invite {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
#access_table td {
|
|
padding-right: 1em;
|
|
}
|
|
|
|
.thumbnail_left {
|
|
float: left;
|
|
margin: 0.5em;
|
|
margin-right: 1em;
|
|
margin-bottom: 0.5em;
|
|
border: 1px solid #999999;
|
|
}
|
|
|
|
.thumbnail_right {
|
|
float: right;
|
|
margin: 0.5em;
|
|
margin-left: 1em;
|
|
margin-bottom: 0.5em;
|
|
border: 1px solid #999999;
|
|
}
|
|
|
|
.search_results_summary {
|
|
font-size: 82%;
|
|
}
|
|
|
|
.invite_status {
|
|
font-size: 82%;
|
|
}
|