aboutsummaryrefslogtreecommitdiff
path: root/app/views
Commit message (Collapse)AuthorAgeFilesLines
* [FIX] Use form model to create/edit resources (fixes #4, fixes #5, refs #3)v0.1.10IN COMMON Collective2021-04-083-15/+30
| | | | | | | | | Since we must associate other models (e.g., classifications) to a Resource, we use a composite model to save all changes inside a database transaction. This approach makes it simpler to handle resources and their associations. Work remains to fix the geolocation and reverse geolocation to ensure these are in sync.
* Merge branch 'main' of code.cepheide.org:incommon-map into mainv0.1.9IN COMMON Collective2021-03-222-0/+7
|\
| * [FIX] Prevent debug from failing without a userhellekin2021-02-121-4/+0
| |
| * [FIX] Prevent debug from failing without a userhellekin2021-02-111-1/+1
| |
| * [FIX] Prevent debug from failing without a userhellekin2021-02-111-1/+1
| |
| * [FEATURE] Link to editv0.1.8hellekin2021-02-111-0/+6
| |
* | [FIX] Honor current Agent selectionIN COMMON Collective2021-03-221-1/+1
| |
* | Merge branch 'uuid-resolver' into mainhellekin2021-03-221-0/+15
|\ \
| * | Add UUIDResolverhellekin2021-03-221-0/+15
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The UUIDResolver adds a route at `/by-uuid/:uuid` that enables applications to request information about a given UUID. The UUID must be a Random UUID (version 4, see RFC 4122). If an invalid UUID is given, the controller will return 422 Unprocessable Entity. If a valid UUID is given: - 404 indicates that the UUID is not assigned to anything known to the system. - 302 indicates that the UUID was assigned to a record, and the User-Agent will be redirected to that record's Location as indicated in the response header. - 200 indicates that the UUID was assigned to more than one record (which is unlikely) and will list those records.
* | [DEBUG] Avoid rendering error with nil classhellekin2021-03-221-1/+1
| |
* | Fix Agent URLhellekin2021-03-221-1/+1
|/
* [FIX] Availability of agentshellekin2021-02-116-4/+36
|
* Fix image linkhellekin2021-02-051-1/+1
| | | | The server changed, and so did the link to the IN COMMON logo.
* Remove unused Taxonomy target and refactor debughellekin2021-01-232-10/+11
| | | | Cleaning up the code.
* Move CSS to Webpackhellekin2021-01-232-1/+6
| | | | | | | | | | | | | Using both the asset pipeline and webpack is confusing and leads to unpredictable results in production. This commit moves all (S)CSS to Webpack under `app/javascript/scss` so that we can test whether the development interface results in a consistent production deployment. In order to load the ForkAwesome fonts we used a long path: `$fa-font-path: "../../../node_modules/fork-awesome/fonts";` Not sure whether this works...
* Add some debug infov0.1.6hellekin2021-01-221-0/+1
|
* Link to current source code version (per AGPL-3.0)hellekin2021-01-221-0/+4
|
* Add markers and popupshellekin2021-01-221-0/+10
| | | | | - Replace MakiMarkers with ExtraMarkers and ForkAwesome - Add HTML popup binding
* Upgrade Rails and add StimulusJS supporthellekin2021-01-2221-37/+140
|
* Add Stimulus Map and Taxonomy (WIP)hellekin2020-11-126-13/+19
| | | | | | | | This commit add StimulusJS interaction for the map and taxonomy, as well as styling. It provides preliminary work to hook up live data on the map from the taxonomy.
* Merged masterhellekin2020-11-124-1/+12
|\
| * Add agent selector widget and taxonomy navigator (WIP)hellekin2020-10-293-0/+11
| |
| * Add Markdown to format Resource.descriptionhellekin2020-10-271-1/+1
| |
* | Add map supporthellekin2020-11-111-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | This commit creates a dedicated Map model and moves the JavaScript from view to a Stimulus controller. - Stimulus.js https://stimulusjs.org - Leaflet.js https://leafletjs.org Upcoming resources: - https://discourse.stimulusjs.org/t/leafletjs-with-stimulusjs-on-rails-6/1343/4 - https://github.com/ghybs/leaflet-defaulticon-compatibility
* | Adjust Style for mobile and stimulushellekin2020-11-111-2/+4
| |
* | Remove bork agent_selector_form helperhellekin2020-10-091-4/+0
| |
* | Remove debug infohellekin2020-10-091-1/+0
|/
* Enable switching Agenthellekin2020-10-092-3/+9
| | | | | | | Switching current Agent can help with roles and resource access. Go to your dashboard by clicking the avatar. Select agent and hit "Select"
* Fix Resource editionhellekin2020-10-093-8/+8
|
* Wrap debug with loginhellekin2020-10-091-4/+6
| | | | To avoid breaking on logout
* Avoid errors on missing Taxonomyhellekin2020-10-091-1/+1
|
* Scope routes to Agenthellekin2020-10-097-21/+98
| | | | | | | Since an Agent is required for all records, we scope the routes and get it present for free ;) This commit also adds resource views.
* Make map more beautifulhellekin2020-10-083-32/+29
| | | | | | | | | | | | | This commit introduces a few things: 1. New `content_for` hooks for :debug, :head, and :body_end so that views code remains consistent and clean 2. Fullscreen map! 3. Welcome#index view, the Rails way It also moves controller-related code to the controller, Enjoy!
* Removed the hand-picked markers because they caused errorsNemael2020-10-081-3/+3
|
* Map added but no dynamic points placed, the current points are hand-picked ↵Nemael2020-10-081-0/+48
| | | | from the data
* Attempt to a fix for the edit resource pageNemael2020-10-081-2/+2
|
* Added leaflet gem and changed a bit the Edit Ressource page to be able to ↵Nemael2020-10-081-4/+6
| | | | edit categories
* Fix form, add flashhellekin2020-10-063-3/+16
|
* First pass at Resources...hellekin2020-10-063-3/+18
|
* First pass at listing Resourceshellekin2020-10-062-2/+16
| | | | | | This implements resource listing and pagination. See /resources
* Fix URLhellekin2020-10-061-1/+1
|
* First pass at something visiblehellekin2020-10-069-8/+50
| | | | This is a first version of the application, to go beyond simple authentication.
* Add Authentication logichellekin2020-10-053-0/+28
| | | | | | | | | | | The ApplicationController provides a `current_user` method (and helper) to access the authenticated user (if any). The WelcomeController provides minimal logic to authenticate against DiscourseSSO. Current state is that one can login and logout. Views need a lot of work.
* rails new incommon-map -d postgresql -C -Thellekin2020-10-053-0/+29