diff --git a/app/assets/javascripts/modules/track-links.js b/app/assets/javascripts/modules/track-links.js deleted file mode 100644 index 6dc2f097c..000000000 --- a/app/assets/javascripts/modules/track-links.js +++ /dev/null @@ -1,31 +0,0 @@ -window.GOVUK = window.GOVUK || {} -window.GOVUK.Modules = window.GOVUK.Modules || {}; - -(function (Modules) { - function TrackLinks () { } - - TrackLinks.prototype.start = function ($element) { - $element = $element[0] - var category = $element.getAttribute('data-track-links-category') - var links = $element.querySelectorAll('a') - - for (var i = 0; i < links.length; i++) { - links[i].addEventListener('click', function (event) { - this.sendLinkClickEvent(event, category) - }.bind(this)) - } - } - - TrackLinks.prototype.sendLinkClickEvent = function (event, category) { - window.GOVUK.analytics.trackEvent( - category, - event.target.innerText, - { - transport: 'beacon', - label: event.target.getAttribute('href') - } - ) - } - - Modules.TrackLinks = TrackLinks -})(window.GOVUK.Modules) diff --git a/app/controllers/content_items_controller.rb b/app/controllers/content_items_controller.rb index 00e373c73..3dcbd998d 100644 --- a/app/controllers/content_items_controller.rb +++ b/app/controllers/content_items_controller.rb @@ -117,16 +117,11 @@ def format_banner_links(links, type) end def content_item_template - return "briefing" if is_briefing? return "guide_single" if @content_item.render_guide_as_single_page? @content_item.schema_name end - def is_briefing? - @content_item.content_id == "3d66e959-72d2-417d-89c1-00cd72eea30f" - end - def render_template if @content_item.requesting_a_part? && !@content_item.has_valid_part? redirect_to @content_item.base_path diff --git a/app/views/content_items/briefing.html.erb b/app/views/content_items/briefing.html.erb deleted file mode 100644 index 8c2cd02e3..000000000 --- a/app/views/content_items/briefing.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -