Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:git:gitlab:badges:examples [2022/05/17 13:31] mbdev:git:gitlab:badges:examples [2022/11/14 14:00] (current) mb
Line 1: Line 1:
 ====== Create badges via web ui ====== ====== Create badges via web ui ======
-Badges are used to show states of e.g. pipelines and jobs. They can also be exported and shown in http or markdown files, to integrate cross project badges. Find more about [[https://gitsrv.schnuerle.com:8443/help/user/project/badges|badges]]  +Badges are used to show states of e.g. pipelines and jobs. They can also be exported and shown in http or markdown files, to integrate cross project badges.\\ Find more about [[https://gitsrv.schnuerle.com:8443/help/user/project/badges|badges]] \\  
 To create a project badge, open the project in gitlab and go to "Settings" -> "General" and expand "Badges".   To create a project badge, open the project in gitlab and go to "Settings" -> "General" and expand "Badges".  
-Now 3 textfields will open:    +Now 3 text fields will open:    
   * name   * name
   * link   * link
   * Badge image URL   * Badge image URL
-  *  + 
-{{ :dev:git:gitlab:badges:badge_creation1.png?direct&600 |}}+Example configuration for a badge to show the latest-release name: \\ 
 +{{:dev:git:gitlab:badges:badge_creation1.png?direct&600|}} 
 +This configuration links to the project page. Linking to other project sub-pages is also possible. \\ 
 +Most important is the Badge Image URL which describes what to show. As seen in the picture a path below the project page is set. With "-" the default branch is selected. \\ **Note:** The path order can be different depending on the badge. \\ 
 +Another and more common example is the pipeline badge. In this case it links directly to the project pipelines. \\ As mentioned the path order is a little bit different to the release badge. \\ 
 +{{:dev:git:gitlab:badges:badge_creation2.png?direct&600|}} 
 +