Implemented "Sort attributes = Date"
SVN revision: 2274
This commit is contained in:
+4
-3
@@ -1644,9 +1644,10 @@ ID display = TAG-$message id
|
||||
attributes, which are used for sorting. The first attribute in the list
|
||||
has the highest priority. Only if two entries have the same value in
|
||||
the first sort attribute, they are sorted according to the second sort
|
||||
attribute and so on. The list of attributes may contain <b>ID</b> and
|
||||
<b>logbook</b>, although <b>ID</b> makes only sense together with
|
||||
other attributes.
|
||||
attribute and so on. To the list of attributes one can add <b>ID</b>,
|
||||
<b>Date</b> and <b>logbook</b>, although <b>ID</b> makes only sense
|
||||
together with other attributes, since it is sorted as the primary
|
||||
key anyhow.
|
||||
</li>
|
||||
</ul><a name="conditional" id="conditional"></a>
|
||||
<hr>
|
||||
|
||||
@@ -322,6 +322,20 @@ second logbook ("closed items"). This can be done with the "Move To" command (se
|
||||
two separate logbooks. One can still search both logbooks at the same time if one checks
|
||||
"Search all logbooks" in the find page.<p>
|
||||
|
||||
Starting from elog version 2.7.7, there now even a third way to do this.
|
||||
With an additional line in the configuration file:
|
||||
|
||||
Collapse tn last = 1
|
||||
|
||||
(in fact the default, but to be explicit), then when the thread is
|
||||
ready to be marked as closed, select the "closed entry" icon when
|
||||
writing the last entry.
|
||||
|
||||
When the entries are viewed in "threaded" mode, then the closed entry
|
||||
icon appears on the last entry; and when in "threaded, collapsed" mode,
|
||||
then the closed entry icon appears in the one line that represents that
|
||||
whole thread.
|
||||
|
||||
<LI><a name=17><b>Does elog have a spell checker?</b>
|
||||
<p>
|
||||
No, but you can use any spell checker which works with your browser. Examples are
|
||||
|
||||
+8
-2
@@ -19018,7 +19018,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
||||
char *p, *pt1, *pt2, *slist, *svalue, *gattr, line[1024], iattr[256];
|
||||
BOOL show_attachments, threaded, csv, xml, raw, mode_commands, expand, filtering, disp_filter, show_text,
|
||||
text_in_attr, searched, found, disp_attr_link[MAX_N_ATTR + 4], sort_attributes, show_att_column;
|
||||
time_t ltime, ltime_start, ltime_end, now, ltime1, ltime2;
|
||||
time_t ltime, ltime_start, ltime_end, now, ltime1, ltime2, entry_ltime;
|
||||
struct tm tms, *ptms;
|
||||
MSG_LIST *msg_list;
|
||||
LOGBOOK *lbs_cur;
|
||||
@@ -19721,7 +19721,13 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
||||
sprintf(str, "%08d", message_id);
|
||||
strlcat(msg_list[index].string, str, sizeof(msg_list[index].string));
|
||||
} else if (strieq(sort_attr[i], loc("Logbook"))) {
|
||||
strlcpy(msg_list[index].string, msg_list[index].lbs->name, 256);
|
||||
strlcat(msg_list[index].string, " ", sizeof(msg_list[index].string));
|
||||
strlcat(msg_list[index].string, msg_list[index].lbs->name, sizeof(msg_list[index].string));
|
||||
} else if (strieq(sort_attr[i], loc("Date"))) {
|
||||
strlcat(msg_list[index].string, " ", sizeof(msg_list[index].string));
|
||||
entry_ltime = date_to_ltime(date);
|
||||
sprintf(str, "%08d", entry_ltime);
|
||||
strlcat(msg_list[index].string, str, sizeof(msg_list[index].string));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user