Rework the log viewer a little

Drop the (pull-request) link of each commit not in the main branch
Marker the commits not in the main branch right next to the commit hash
Fix the issueid in the new_issue template
Fix the title in the new_issue template when editing an existing issue