add snippets link to default link bundle

This commit is contained in:
Jean-Francois Dockes 2012-10-08 14:25:17 +02:00
parent 768bc54591
commit ce52b602c3

View File

@ -244,6 +244,7 @@ void ResListPager::displayDoc(RclConfig *config, int i, Rcl::Doc& doc,
if (doc.haspages) { if (doc.haspages) {
snipsbuf << "<a href=\"A" << docnumforlinks << "\">" snipsbuf << "<a href=\"A" << docnumforlinks << "\">"
<< trans("Snippets") << "</a>&nbsp;&nbsp;"; << trans("Snippets") << "</a>&nbsp;&nbsp;";
linksbuf << "&nbsp;&nbsp;" << snipsbuf.str();
} }
// Build the result list paragraph: // Build the result list paragraph:
@ -258,12 +259,12 @@ void ResListPager::displayDoc(RclConfig *config, int i, Rcl::Doc& doc,
map<string, string> subs; map<string, string> subs;
subs["A"] = !richabst.empty() ? richabst : ""; subs["A"] = !richabst.empty() ? richabst : "";
subs["D"] = datebuf; subs["D"] = datebuf;
subs["E"] = snipsbuf.rdbuf()->str(); subs["E"] = snipsbuf.str();
subs["I"] = iconurl; subs["I"] = iconurl;
subs["i"] = doc.ipath; subs["i"] = doc.ipath;
subs["K"] = !doc.meta[Rcl::Doc::keykw].empty() ? subs["K"] = !doc.meta[Rcl::Doc::keykw].empty() ?
string("[") + escapeHtml(doc.meta[Rcl::Doc::keykw]) + "]" : ""; string("[") + escapeHtml(doc.meta[Rcl::Doc::keykw]) + "]" : "";
subs["L"] = linksbuf.rdbuf()->str(); subs["L"] = linksbuf.str();
subs["N"] = numbuf; subs["N"] = numbuf;
subs["M"] = doc.mimetype; subs["M"] = doc.mimetype;
subs["R"] = doc.meta[Rcl::Doc::keyrr]; subs["R"] = doc.meta[Rcl::Doc::keyrr];