6,566
edits
(Modified the Gitorious URL generation so that if no project or repository is given, then just the base URL https://gitorious.org is created.) |
(Modification of the Gitorious link text construction - the text is prepended by "gitorious/" and if the project is not supplied, the text will fall back to "Gitorious website". The default values have also been removed.) |
||
Line 372: | Line 372: | ||
| {{#ifeq: {{{full|}}} | 1 | | {{#ifeq: {{{full|}}} | 1 | ||
| <!-- No text. --> | | <!-- No text. --> | ||
| {{#if: {{{pre|}}} | | {{#if: {{{proj|}}} | ||
| {{#if: {{{repo|}}} | |||
| {{#if: {{{pre|}}} | |||
| {{{pre}}}<!-- A prefix to the link label. --> | |||
| {{#if: {{{simplepath|}}} | |||
| <!-- No project, repository or branch. --> | |||
| gitorious/<!-- Site advertising. | |||
-->{{{proj|}}}/<!-- The project name. | |||
-->{{{repo|}}}/<!-- The repository name. | |||
}} | -->{{#if: {{{mr|}}} | ||
| merge-requests/{{{mr}}}<!-- The merge request.--> | |||
| {{{commit|{{{branch|HEAD}}}}}}<!-- Or the commit or branch.--> | |||
}} | |||
}} | |||
}}<!-- | |||
-->{{#if: {{{path|}}} | /{{{path}}}}}<!-- The file or directory path. | |||
-->{{#if: {{{line|}}} | #l{{{line}}}}} <!-- The optional line number. --> | |||
}} | }} | ||
| Gitorious website | |||
}} | |||
}} | }} | ||
}} | }} |