Skip to content

Commit

Permalink
Add titles to some pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Mar 31, 2023
1 parent 20b0e7c commit 3f622df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _ruby_libs/pages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def initialize(site, dep_name, dep_data, full_dep_data)

self.data['dep_name'] = dep_name
self.data['dep_data'] = dep_data
self.data['title'] = 'rosdep System Dependency: ' + dep_name

self.data['dep_data_per_platform'] = full_dep_data['data_per_platform']
self.data['dependants_per_distro'] = full_dep_data['dependants_per_distro']
Expand Down Expand Up @@ -103,6 +104,7 @@ def initialize(site, sort_id, n_list_pages, page_index, list, default=false)
self.data['n_list_pages'] = n_list_pages
self.data['page_index'] = page_index
self.data['list'] = list
self.data['title'] = 'ROS Packages'

self.data['prev_page'] = [page_index - 1, 1].max
self.data['next_page'] = [page_index + 1, n_list_pages].min
Expand Down Expand Up @@ -163,6 +165,7 @@ def initialize(site, sort_id, n_list_pages, page_index, list, default=false)
self.data['n_list_pages'] = n_list_pages
self.data['page_index'] = page_index
self.data['list'] = list
self.data['title'] = 'rosdep System Dependencies'

self.data['prev_page'] = [page_index - 1, 1].max
self.data['next_page'] = [page_index + 1, n_list_pages].min
Expand Down Expand Up @@ -225,6 +228,7 @@ def initialize(site, package_instances)
self.read_yaml(File.join(@base, '_layouts'),'package.html')
self.data['package_instances'] = package_instances
self.data['package_name'] = package_instances.name
self.data['title'] = 'ROS Package: ' + package_instances.name

self.data['instances'] = package_instances.instances

Expand Down Expand Up @@ -256,6 +260,7 @@ def initialize(site, package_instances, instance, package_name)
self.data['instances'] = package_instances.instances
self.data['instance'] = instance
self.data['package_name'] = package_name
self.data['title'] = 'ROS Package: ' + package_name

self.data['instance_index_url'] = ['packages',package_instances.name].join('/')
self.data['instance_base_url'] = ['p',package_name].join('/')
Expand Down

0 comments on commit 3f622df

Please sign in to comment.