navigation_helper.rb revision cd3073fbe6dc665dc20e2c65cf1ac33f723408f3
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# encoding: utf-8
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte pages << [:symbols, [ontology, :entities]] if @groups.blank?
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte # action link to new version
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte actions << link_to('New version', [:new, ontology, :ontology_version ]) if can? :edit, ontology
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte # add counters
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte pages.each do |row|
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte counter_key = "#{row[0]}_count"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte row << ontology.send(counter_key) if ontology.respond_to?(counter_key)