Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Added commit or branch information to the SourceForge git web link text when the 'pre' parameter is set. The text ' (commit <commit>)' or ' (branch <branch>)' is appended to allow the link to be differentiated from the HEAD commit.
(Fix for the default view for the Gitorious merge request.)
(Added commit or branch information to the SourceForge git web link text when the 'pre' parameter is set. The text ' (commit <commit>)' or ' (branch <branch>)' is appended to allow the link to be differentiated from the HEAD commit.)
Line 69: Line 69:
                 }}<!--
                 }}<!--
               -->{{#if: {{{line|}}} | &#35;l{{{line}}}}}<!--        The optional line number. -->
               -->{{#if: {{{line|}}} | &#35;l{{{line}}}}}<!--        The optional line number. -->
              }}<!--
            -->{{#if: {{{pre|}}} <!--                              Add the commit or branch info for the prefixed text. -->
                | {{#if: {{{commit|}}}
                    |<nowiki></nowiki> (commit {{{commit}}})
                    | {{#if: {{{branch|}}}
                        |<nowiki></nowiki> (branch {{{branch}}})
                      }}
                  }}
               }}<!--
               }}<!--
             -->{{#switch: {{{view|tree}}} <!--                      The view description. -->
             -->{{#switch: {{{view|tree}}} <!--                      The view description. -->

Navigation menu