Giter VIP home page Giter VIP logo

Comments (2)

shawnmjones avatar shawnmjones commented on September 25, 2024

Raintale's GUI is intended to create stories, but not necessarily distribute them. We don't want users to get into the habit of just sharing the story from the server. If the Raintale GUI is updated or reinstalled, the stories may disappear.

We should also add a Download Story or Save Story button for downloading the story file. I realize that a user can just right click the appropriate file and download it manually, but this would help to stress that they need to save the story and that the Raintale GUI is not the story's final destination.

from raintale.

shawnmjones avatar shawnmjones commented on September 25, 2024

I've been thinking about how we could handle this for file outputs. We can modify the template in jobs/results/table_row.html to modify the entry for the file containing output.dat.

Here is a crude idea, but we can make it better. See how the Django template language checks for output.dat in the file.url variable and then behaves differently?

        {% if 'output.dat' in file.url %}
        STORY FILE ➡️ <a href="{{ file.url }}" target="_blank">{{ file.basename }}</a>
        {% else %}
        <a href="{{ file.url }}" target="_blank">{{ file.basename }}</a>
        {% endif %}

We could place the button here, which deviates from the interface paradigm used on the rest of the page. If possible, a better idea is to identify this line with an HTML id attribute containing some value, like story-file, and then use this id value to connect it to the View Story and Download Story buttons through some JavaScript.

from raintale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.