couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garren Smith (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (COUCHDB-2297) Create Fauxton links functionality
Date Thu, 21 Aug 2014 15:59:14 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-2297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Garren Smith reassigned COUCHDB-2297:
-------------------------------------

    Assignee: Garren Smith

> Create Fauxton links functionality
> ----------------------------------
>
>                 Key: COUCHDB-2297
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2297
>             Project: CouchDB
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>            Reporter: Garren Smith
>            Assignee: Garren Smith
>
> Currently we hard code the urls for the app. So our templates and code is littered with
urls. This is not a great idea. I propose we create a links object that can generate urls
for us.
> This would be similar to how Ruby on Rails works with its url functionality. I think
how we should do it is have a Fauxton.links object. We can then ask it for a url e.g. Fauxton.links.allDocs(databaseName,
context);  it would then return the url for the all docs page of the database.
> What would also be important is to have the context argument so we can specify if its
for the web or to fetch an object. Like how we use the context for models.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message