Project

General

Profile

HTML changes to webpage?

Added by Pavel Yeloyev 11 months ago

If installed on a Debian system, is it possible to easily change the HTML/JavaScript of the pages? For example I want to modify the way the text boxes in the Issue Edit page works. Is it safe/simple? Where are the JS/HTML components located?


Replies (6)

RE: HTML changes to webpage? - Added by Ronny James 10 months ago

Yes, you can edit the HTML/JavaScript files for the Issue Edit page in a Debian system. The files are located in the /var/lib/jenkins/jenkinshome/war/static/ directory. You can edit the issue-edit.html file to modify the way the text boxes work, and the issue-edit.js file to modify the JavaScript code for the page.

It is safe to modify these files, but make sure you make a backup before you start, and use a text editor that can handle both HTML and JavaScript files. You can also use a debugger to help you track down any errors in your code.

RE: HTML changes to webpage? - Added by Pavel Yeloyev 10 months ago

I don't see "Jenkins."


cd /var/lib/
ls

apache2     dpkg       initramfs-tools  ntp        private      systemd
apt         fail2ban   logrotate        os-prober  python       tklbam
cron-apt    git        man-db           pam        resolvconf   ucf
dbus        grub       misc             polkit-1   shellinabox  usbutils
dehydrated  inithooks  mysql            postfix    stunnel4     vim

RE: HTML changes to webpage? - Added by Khan Zain 5 months ago

To make HTML changes to a webpage, locate the HTML file or code associated with the specific webpage you want to modify. Use a text editor to open and edit the HTML file, making the desired changes such as updating content, adding elements, or adjusting styles. After saving the changes, refresh the webpage in your browser to see the updated HTML content reflected on the site.

RE: HTML changes to webpage? - Added by Grace Martin 4 months ago

If you're running a website on a Debian system and want to tweak the HTML and JavaScript, it's possible but be careful. Modifying code can have unintended consequences. If you're sure about it:

1- Find the Web Server Root: Look in places like /var/www/html or /usr/share/nginx/html for the main website files.

2- App-Specific Directories: Check if there's a specific directory for your web app, often mentioned in its documentation.

3- Check Version Control: If the site uses Git or another version control system, you might find the code there.

4-Package Manager Installations: For packages installed via APT, files might be distributed across standard locations.

Regarding changing text boxes on the Issue Edit page, start by identifying the application that runs it. Once you find the app's files, hunt for the HTML and JavaScript related to the Issue Edit page.

Few reminders

- Always back up before you mess with code.
- Understand the rules—modifying the code might have legal implications.
- Future updates to the app could undo your changes.

Generally, it's smarter to use the application's built-in customization options. Messing with core files can lead to headaches down the line. If there's a plugin system or theming option, that's usually the safer route.

To gain additional insights, please refer to the following link: https://iqratechnology.com/academy/html-training/

RE: HTML changes to webpage? - Added by Lorenzo Meneghetti 4 months ago

Pavel Yeloyev wrote:

If installed on a Debian system, is it possible to easily change the HTML/JavaScript of the pages? For example I want to modify the way the text boxes in the Issue Edit page works. Is it safe/simple? Where are the JS/HTML components located?

Don't believe to previous replies (may be autogenerated). Redmine is a dynamic web application, you have to study basic internals of RubyOnRails applications and then Redmine developer guide (some books are also available).

Regards

RE: HTML changes to webpage? - Added by Pavel Yeloyev 4 months ago

Lorenzo Meneghetti wrote in RE: HTML changes to webpage?:

Pavel Yeloyev wrote:

If installed on a Debian system, is it possible to easily change the HTML/JavaScript of the pages? For example I want to modify the way the text boxes in the Issue Edit page works. Is it safe/simple? Where are the JS/HTML components located?

Don't believe to previous replies (may be autogenerated). Redmine is a dynamic web application, you have to study basic internals of RubyOnRails applications and then Redmine developer guide (some books are also available).

Regards

Yes, that is my main problem. Since the HTML pages that Redmine displays don't exist as HTML pages, but as inline code inserts, I was wondering if someone could tell me which file addresses the Edit Issue screen. I don't need much: just want to make that screen's Note box be automatically cloned (up to the character limit) into the time entry description box.

    (1-6/6)