Merge pull request #31 from janglapuk/master

Add title attribute for each dir or file
pull/24/head
Adrian Perez 9 years ago
commit 945f87c644

@ -741,6 +741,8 @@ make_content_buf(
len += ngx_sizeof_ssz("<tr><td><a href=\"") len += ngx_sizeof_ssz("<tr><td><a href=\"")
+ entry[i].name.len + entry[i].escape /* Escaped URL */ + entry[i].name.len + entry[i].escape /* Escaped URL */
+ ngx_sizeof_ssz("?C=x&amp;O=y") /* URL sorting arguments */ + ngx_sizeof_ssz("?C=x&amp;O=y") /* URL sorting arguments */
+ ngx_sizeof_ssz("\" title=\"")
+ entry[i].name.len + entry[i].utf_len
+ ngx_sizeof_ssz("\">") + ngx_sizeof_ssz("\">")
+ entry[i].name.len + entry[i].utf_len + entry[i].name.len + entry[i].utf_len
+ alcf->name_length + ngx_sizeof_ssz("&gt;") + alcf->name_length + ngx_sizeof_ssz("&gt;")
@ -890,6 +892,9 @@ make_content_buf(
} }
} }
*b->last++ = '"';
b->last = ngx_cpymem_ssz(b->last, " title=\"");
b->last = ngx_cpymem_str(b->last, entry[i].name);
*b->last++ = '"'; *b->last++ = '"';
*b->last++ = '>'; *b->last++ = '>';

Loading…
Cancel
Save