<resource file="${basedir}/resources/settings_32x32.png" />\r
<resource file="${basedir}/resources/search-icon.png" />\r
<resource file="${basedir}/resources/mail_16x16.png" />\r
+ <resource file="${basedir}/resources/script_16x16.png" />\r
<resource file="${basedir}/resources/blank.png" />\r
<resource file="${basedir}/resources/bullet_green.png" />\r
<resource file="${basedir}/resources/bullet_orange.png" />\r
import javax.swing.JScrollPane;\r
import javax.swing.JSplitPane;\r
import javax.swing.JTable;\r
+import javax.swing.JTextArea;\r
import javax.swing.JTextField;\r
import javax.swing.RowFilter;\r
import javax.swing.SwingConstants;\r
import com.gitblit.client.Translation;\r
import com.gitblit.models.UserModel;\r
import com.gitblit.utils.ArrayUtils;\r
+import com.gitblit.utils.FileUtils;\r
import com.gitblit.utils.StringUtils;\r
import com.gitblit.utils.TimeUtils;\r
import com.gitblit.utils.X509Utils;\r
}\r
});\r
\r
+ JButton logButton = new JButton(new ImageIcon(getClass().getResource("/script_16x16.png")));\r
+ logButton.setFocusable(false);\r
+ logButton.setToolTipText(Translation.get("gb.log")); \r
+ logButton.addActionListener(new ActionListener() {\r
+ @Override\r
+ public void actionPerformed(ActionEvent e) {\r
+ File log = new File(folder, X509Utils.CERTS + File.separator + "log.txt");\r
+ if (log.exists()) {\r
+ String content = FileUtils.readContent(log, "\n");\r
+ JTextArea textarea = new JTextArea(content);\r
+ JScrollPane scrollPane = new JScrollPane(textarea);\r
+ scrollPane.setPreferredSize(new Dimension(700, 400));\r
+ JOptionPane.showMessageDialog(GitblitAuthority.this, scrollPane, log.getAbsolutePath(), JOptionPane.INFORMATION_MESSAGE);\r
+ }\r
+ }\r
+ });\r
+ \r
final JTextField filterTextfield = new JTextField(15);\r
filterTextfield.addActionListener(new ActionListener() {\r
public void actionPerformed(ActionEvent e) {\r
buttonControls.add(certificateDefaultsButton);\r
buttonControls.add(newSSLCertificate);\r
buttonControls.add(emailBundle);\r
+ buttonControls.add(logButton);\r
\r
JPanel userControls = new JPanel(new FlowLayout(FlowLayout.RIGHT, Utils.MARGIN, Utils.MARGIN));\r
userControls.add(new JLabel(Translation.get("gb.filter")));\r