Commit Graph

101 Commits

Author SHA1 Message Date
f8a9f056ed fix bug where back button goes missing if you go into an empty folder 2021-06-17 19:54:09 +10:00
b09d19570f improved DBox images/html, improved look of MoveDBox, started plumbing for pa_job_manager to do actual moves, all the data is there, just havent performed the FS or DB move. cleaned up duplicated DEBUGS that are straight before AddLogForJob... tweaked TODO appropriately 2021-06-14 18:30:52 +10:00
7c3c8977d6 refined right-click seln. If you have one or more highlights, dont mess with them. If you have none, then select the one you are over. Also finished TODO for view details menu option 2021-06-13 22:14:35 +10:00
ae5fb0f747 fixed 3 BUGS: BUG-31: can post move/del/restore DBoxes without highlighted files/content; BUG-33: can call move/del/restore on mixed content - prob. stop it? (e.g right-click from search with highlighted files in both Bin and non Bin locations); BUG-34: shift-clicking (left or right) from a non-highlighted state does not add the shift-clicked item. ALSO removed ability to right-click change sel... 2021-06-13 21:35:08 +10:00
93d0eec00e FIXED: BUG-29: when delete/restore from search view the popup shows a path icon - in wrong spot, move it or lose it AND put trash icon back in alert for location when in Bin, restore icon in that context was wrong 2021-06-12 17:25:47 +10:00
f776a6a3c1 fixed up commit where I removed the data on the POST, so del/restore stopped working 2021-06-12 17:06:24 +10:00
471ed3c972 FIXED: BUG-30: when restoring, the OK button is red not green in dbox, added new BUG-32: sometimes still getting extra directories in Bin, that just have a trailing slash (or 2 or 3, etc.) 2021-06-12 16:36:40 +10:00
c3398ef77a for now made del/restore force a reload of main page, it still does not show you created the del/restore job, but it is better than nothing. Also fixed dumb bug I introduced when handling trash/restore icons and moved an if rather than copied it between the alert for dir in and buttons for del/restore 2021-06-11 19:03:37 +10:00
0b6acd1899 changed to consistently use restore instead of awful undelete 2021-06-10 17:55:44 +10:00
804c7cbf56 made trash icon be red/Delete or green/Restore for GUI, plumbed this through modified DelDBox() and hooked it all so that you can either click the button, or right-click context menu and you will get the right del/restore dbox and that routes through via ajax to the right URL and actually deletes/restores. Also tweaked right-click to start context menu so that it is also a way to alter highlighting -- this honours ctrl and shift too 2021-06-10 17:45:08 +10:00
7bbea21981 switched over to smarter context menu, hooked up delete button to ajax call, but not context menu yet - nor undelete. Made contextmenu detect path of object and del/undel appropriately, which also fixes a few quirks/bugs with no data in DB and trying to find the path of the first/non-existant entry 2021-06-09 21:34:16 +10:00
824aae3f94 clicking on the bg removes selection/highlights 2021-06-09 18:06:57 +10:00
8e4b5fe09b minor formatting fix to make dbox work better 2021-06-09 17:57:58 +10:00
060cf8acd2 put beginnings of undelete in context menu -> does nothing as yet, nor does delete for that matter. tweaked the alert displaying folder we are in to better show path icon and location, added a disabled back button in folder view so actual folders dont jumped around when you go into the first folder and a back button used to appear. Peak into first entry to see if we are viewing a Bin path and if so, then we could use undel.... In hindsight this is a hack that needs to be thought through per file (when I search it will break), but its a start for now and shows the right context menu when viewing a specific path. 2021-06-08 21:16:49 +10:00
46fc90ddeb if via folders or grouping is none we create the row of images. if we are searching, added mini icon in bottom-left to show where the image is from (import/storage/bin) 2021-06-06 17:23:23 +10:00
7e2494884e can now toggle between folder or flat view, its a bit ugly, but it works 2021-06-06 14:09:11 +10:00
5e03650ed5 first cut of paths actually working with folder viewing - for now defaulting on for both Storage only 2021-05-01 18:16:45 +10:00
3237e3bf8f fixed up dup code to work with paths, added path_types throughout and updated TODO to be clear on what next 2021-04-17 17:43:42 +10:00
ca7391e21b fixed hard-coded static/storage, now use in_path.path_prefix 2021-04-12 00:06:26 +10:00
095b7c8333 Path in the DB is complete, still have hacks around displaying folders (hardcoded path name) 2021-04-11 15:35:01 +10:00
fddd47a1ab now using uselist=False to ensure file_details, dir_details, in_dir are one-to-one, and dont have useless list of 1 element. updated TODO to reflect order of how to tackle change over to paths and dirs 2021-04-10 11:28:17 +10:00
1ece519a2a added first pass of viewing by folders, see TODO for next steps 2021-04-06 17:05:24 +10:00
7fd6a2eddb fixed BUGs 22 and 23 - both relate to the HTML forms being different for the search and viewing data, so changing one when the other was set, did not pass the values through, e.g. search term not there when you change a viewing option, or after searching, it did not know the grouping options. Fixed from the search side by showing a label of what you are searching for and storing it statically in the viewing form. Sorted by jscript onSubmit func to take 5 viewing options and store the last value in hidden inputs in the search form 2021-02-21 15:40:47 +11:00
b168b0c77b add year as path preprend for storage suggestion 2021-02-09 19:36:56 +11:00
893d48c8d5 using sm-txt to shrink action buttons at top of page, created basic move/del dbox to be more or less partially functional, without doing anything real 2021-02-07 20:44:55 +11:00
6415b9d50d remove unneeded and complex jquery function 2021-02-06 17:02:46 +11:00
6b0a6f194e added in selection code, also temp disable of right-click menu for thumbs 2021-02-06 16:58:19 +11:00
1e219fd2b8 now keep size over reloads of page, its hacky though 2021-02-02 01:15:28 +11:00
d4e3a1d93e use vars, not form to set initial form values, use new CreateSelect() to neaten up form creation, redo formatting to have 3 cols, left / centre / right justified, also disable prev button when offset is 0, to stop the button just reloading the same page over again 2021-02-02 00:24:47 +11:00
5703664019 changed to fixed number of images per load, rather than complicating with week/month/year retrieval 2021-02-01 23:13:38 +11:00
282c5ae721 fix up month, etc. view not having proper divs for heading rows 2021-01-31 18:32:30 +11:00
24437a5589 fix new bug where size button submits form and goes back to M with just return false on them 2021-01-31 18:29:42 +11:00
552ea7e614 keep last form values 2021-01-31 18:17:16 +11:00
2db7f59a40 made basic newest/oldest week/month/year part of gui actually retreive what we want, and have a title per grouping, but the grouping title is hard-coded for now, will need more data to do a better test, also hacky submit button for now until I decide how to enact the gui change requested 2021-01-30 23:26:52 +11:00
0c5654a45e first pass of new viewing files "button bar" 2021-01-30 15:39:55 +11:00
9d1370cd62 allow video files to be clickable, in FF it just works, imagine my chromes are just broke as they have partial nvidia optims that are broken 2021-01-29 00:10:05 +11:00
31d45e80b6 moved over to new ENTRY based data structures for loading from DB and viewing content 2021-01-19 17:33:10 +11:00
abff2d8bab finished moving GenerateFileData out of files.py into pa_job_manager.py 2021-01-17 11:31:06 +11:00
665096f97d minor tweak to fix pixel alignment, its a serious hack, but it *seems to work 2021-01-15 14:44:31 +11:00
d857233723 files now processes multiple paths, and view shows images for any images in appropriate path 2021-01-12 16:58:41 +11:00
48748c23be used this to remove unique ids on buttons 2021-01-12 15:17:46 +11:00
e35247ea70 video files now have a icon to indicate its a video as well 2021-01-12 14:44:11 +11:00
6e67bcd803 stupid me, the video thumbnail did not have thumb class, so it was not being resized by buttons, now works, ratios still seem odd, but its ok 2021-01-12 01:49:51 +11:00
83c7e5379c Merge branch 'master' of 192.168.0.2:photoassistant
BUT, the thumbnails for the videos are fixed ratios, so the resizing doesnt work for them.. Odd
2021-01-12 01:48:11 +11:00
3a16379aca basic improvement for sizing buttons, but also sizing is smarter, this way I do not need to know the image or thumbnail ratios :) 2021-01-12 01:45:26 +11:00
Cam
225b919ad2 Merge branch 'master' of mara.ddp.net:photoassistant 2021-01-11 12:51:19 +11:00
Cam
eeb24611c8 got video thumbnails working, added another pip packages to the README, and edited the templates/files.html accordingly. 2021-01-11 12:50:31 +11:00
38f8a3228d token version of resizing thumbs done 2021-01-11 12:34:53 +11:00
cd34be0316 files view now has icon for videos, better text/image alignment 2021-01-11 12:01:38 +11:00
80b199bc26 files now shows thumb view - first pass 2021-01-11 11:48:01 +11:00