<commit_before>function addReportTemplate() {
  var descText = `<a href="//forum.freecadweb.org/viewtopic.php?f=3&t=5236">Read this before reporting</a> 
  and make a <a href="//forum.freecadweb.org">forum thread asking for help</a> 
  <em>first</em> if you aren't sure it's a bug!`;

  var stepsText = `Include a detailed, step-by-step list for bugs.
We can't fix a bug we can't reproduce.`;

  var infoText = `Paste the contents of Help > About FreeCAD > "Copy to
clipboard".
<br><br>
Running a debug release? Publish a <a href="http://www.freecadweb.org/wiki/Debugging">debugging backtrace</a>.
<br><br>
File too large? Upload to a cloud-based 3rd party service like Nextcloud or Dropbox,
and paste the link here.`;

  var exclamationTriangle = '<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>';
  
  var descHtml = '<br><br>' + exclamationTriangle + ' <span class="red">' + descText + '</span>';
  var stepsHtml = '<br><br>' + exclamationTriangle + ' <span class="red">' + stepsText + '</span>';
  var infoHtml = '<br><br>' + exclamationTriangle + ' <span class="red">' + infoText + '</span>';

  $('label[for=description]').after(descHtml);
  $('label[for=steps_to_reproduce]').after(stepsHtml);
  $('label[for=additional_info]').after(infoHtml);
}

function swapButtons() {
  // List items containing "button"
  readThis = $('li a span:contains("Read this")').parent().parent();
  viewIssues = $('li a span:contains("View Issues")').parent().parent();

  readThis.insertAfter(viewIssues);
}

$(document).ready(function () {
  swapButtons();
  var pageTitle = $(document).attr("title");
  if (pageTitle === "Report Issue - FreeCAD Tracker") {
    addReportTemplate();
  }
});

var _paq = _paq || [];<commit_msg>Bugtracker: Add help text to new FC Info custom field <commit_after>function addReportTemplate() {
  var descText = `<a href="//forum.freecadweb.org/viewtopic.php?f=3&t=5236">Read this before reporting</a> 
  and make a <a href="//forum.freecadweb.org">forum thread asking for help</a> 
  <em>first</em> if you aren't sure it's a bug!`;

  var stepsText = `Include a detailed, step-by-step list for bugs.
We can't fix a bug we can't reproduce.`;

  var infoText = `Running a debug release? Publish a <a href="http://www.freecadweb.org/wiki/Debugging">debugging backtrace</a>.
<br><br>
File too large? Upload to a cloud-based 3rd party service like Nextcloud or Dropbox,
and paste the link here.`;

  var fcinfoText = `Paste the contents of Help > About FreeCAD > "Copy to
clipboard". <em>Note:</em> You must only post the complete snippet with nothing else.
Or else the tracker will not accept the ticket.`;
  
  var exclamationTriangle = '<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>';
  
  var descHtml = '<br><br>' + exclamationTriangle + ' <span class="red">' + descText + '</span>';
  var stepsHtml = '<br><br>' + exclamationTriangle + ' <span class="red">' + stepsText + '</span>';
  var infoHtml = '<br><br>' + exclamationTriangle + ' <span class="red">' + infoText + '</span>';
  var fcinfoHtml = '<br><br>' + exclamationTriangle + ' <span class="red">' + infoText + '</span>';


  $('label[for=description]').after(descHtml);
  $('label[for=steps_to_reproduce]').after(stepsHtml);
  $('label[for=additional_info]').after(infoHtml);
  $('label[for=custom_field_1]').after(fcinfoHtml);

}

function swapButtons() {
  // List items containing "button"
  readThis = $('li a span:contains("Read this")').parent().parent();
  viewIssues = $('li a span:contains("View Issues")').parent().parent();

  readThis.insertAfter(viewIssues);
}

$(document).ready(function () {
  swapButtons();
  var pageTitle = $(document).attr("title");
  if (pageTitle === "Report Issue - FreeCAD Tracker") {
    addReportTemplate();
  }
});

var _paq = _paq || [];
{'fraction_non_alphanumeric': 0.17795939889269707, 'fraction_numerical': 0.003427366200896388, 'mean_word_length': 4.783536585365853, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2479445', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1233, 'n_words': 340}