예제 #1
0
 def pipeline_column(cls, obj):
     """
     If the project is part of a pipeline, we'll show it here with a link to the map
     view to the pipeline, as well as the pipeline name and stage name.
     """
     if not obj.pipeline:
         return "-"
     map_link = icon('fa-empty-circle', family='fas', tooltip='None')
     my_link = "/ui/pipelines/%s/map" % obj.pipeline.id
     my_icon = icon('fa-map', family='fas', tooltip='Map View')
     map_link = link(my_link, my_icon)
     # we don't want to do database lookups here so not checking permissions
     # in future UI upgrades we may have an "edit" button on the detail page
     my_link2 = "/ui/pipelines/%s/detail" % obj.pipeline.id
     pipeline_link = link(my_link2, obj.pipeline.name)
     return "%s %s" % (map_link, pipeline_link)
예제 #2
0
파일: project.py 프로젝트: xinity/vespene
 def build_history_column(cls, obj):
     """
     The builds column shows a link to the history of past builds, as well as the status
     of the last build.  The controls icon is a play/stop button for the project, and appears
     conditionally based on whether there is an active build.
     """
     all_link = "/ui/builds?project_id=%s" % obj.id
     all_icon = link(all_link, icon('fa-list-alt', '', tooltip='Build History'))
     return all_icon
예제 #3
0
 def map_column(cls, obj):
     # show a link to see the build history of this project
     my_link = "/ui/pipelines/%s/map" % obj.id
     my_icon = icon('fa-map', family='fas', tooltip='Map View')
     return link(my_link, my_icon)