ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Logo uploader (Feature #685)
Ability for admins to upload an image file that is used for the main logo.
|related to Feature #263: New layout||Closed||2011-03-06|
In my opinion the best way to do this is to have a file attachment section in the Admin panel (under Settings > Design or similar). This would be saved (Attachment object without a Project perhaps?) which would then become public at a specific constant url (/images/logo). A Rails route/controller could then be used to load the Attachment object for the user.
An easier option would be to save the uploaded file into public but I don't think that would work because:
- /public is read-only in some environments
- we'd need to make the url constant for the CSS (#top-menu, #account) or generate the CSS dynamically. (think if the CSS points to a PNG image but a user uploads a JPEG).