Changes between Version 19 and Version 20 of LastModifiedMacro
- Timestamp:
- Nov 30, 2015, 8:40:09 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LastModifiedMacro
v19 v20 5 5 == Description 6 6 7 Shows the last modification date of the specified page, or the page the macro appears in if not specified. An optional argument, {{{delta}}}, can be given to show the time elapsed since the last modification. The output is placed in a {{{<span>}}} with a title that gives the exact modification date and the author of the change.7 This macro shows the last modification date of the specified page, or the page the macro appears in if not specified. An optional argument, {{{delta}}}, can be given to show the time elapsed since the last modification. The output is placed in a {{{<span>}}} with a title that gives the exact modification date and the author of the change. 8 8 9 9 This plugin retrieves information from the database and adds it to a wiki page. Currently supported keywords: `author`, `version`, `changed_by`, `comment`, `changed_ts`. … … 21 21 == Download 22 22 23 Download the zipped source from [ download:lastmodifiedmacro here].23 Download the zipped source from [export:lastmodifiedmacro here]. 24 24 25 25 == Source 26 26 27 You can check out LastModifiedMacro from [ http://trac-hacks.org/svn/lastmodifiedmacro here] using Subversion, or [source:lastmodifiedmacro browse the source] with Trac.27 You can check out LastModifiedMacro from [/svn/lastmodifiedmacro here] using Subversion, or [source:lastmodifiedmacro browse the source] with Trac. 28 28 29 29 == Example … … 34 34 [[LastModified(delta)]] 35 35 [[LastModified(MacroBazaar)]] 36 [[LastModified(MacroBazaar, delta)]]36 [[LastModified(MacroBazaar, delta)]] 37 37 }}} 38 38 39 For example, {{{ [[LastModified(CustomMacros)]]}}} produces:39 For example, {{{[[LastModified(CustomMacros)]]}}} produces: 40 40 {{{ 41 41 <span class="last-modified" title="Wed Oct 6 … … 43 43 }}} 44 44 45 Alternatively, {{{ [[LastModified(CustomMacros,delta)]]}}} produces:45 Alternatively, {{{[[LastModified(CustomMacros,delta)]]}}} produces: 46 46 {{{ 47 47 <span class="last-modified" title="Wed Oct 6 … … 49 49 }}} 50 50 51 This is a CSS style to apply that will make it about 3.14% slicker:51 This is a CSS style to apply an underline and a tooltip: 52 52 {{{ 53 53 span.last-modified … … 58 58 }}} 59 59 60 Building off the above style, I did the following to match the colour of the [wiki:TocMacro]. 61 (To apply this to all projects, append the below text to this file: /usr/share/trac/htdocs/css/wiki.css) 60 Building off the above style, the colour of the [wiki:TocMacro] can be matched further. To apply this to all projects, append the below text to file `/usr/share/trac/htdocs/css/wiki.css`: 62 61 {{{ 63 62 /* Styles for the LastModified wikimacro */