[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [% RETURN UNLESS attachment.mimetype == "text/x-github-pull-request" && attachment.can_review; custom_attachment_viewer = 1; %] [% IF NOT user.id %]
Display of Github pull requests only available to logged in users.
[% RETURN %] [% END %] [% attachment_data = attachment.fetch_github_pr_diff %]
[% INCLUDE global/textarea.html.tmpl id = 'editFrame' name = 'comment' classes = 'bz_default_hidden' minrows = 10 cols = 80 wrap = 'soft' disabled = 'disabled' defaultcontent = attachment_data.replace('(.*\n|.+)', '>$1'); %]
    [% attachment_data FILTER html %]
  
[% IF user.id %] [% END %]