Git Product home page Git Product logo

Comments (10)

bastiaanterhorst avatar bastiaanterhorst commented on May 18, 2024

Does it work if you add the translation?

from rich.

artemaminov avatar artemaminov commented on May 18, 2024

I thing there is the bug with quotes after <a translation_missing. And it's everywhere.

<div id="insert-toggle">
    <a translation_missing"="" title="&lt;span class=" id="insert-many" href="#" style="display: none;">Insert Many Tip"&gt;<span title="translation missing: ru.insert_many" class="translation_missing">Insert Many</span></a>
    <a translation_missing"="" title="&lt;span class=" id="insert-one" href="#">Insert One Tip"&gt;<span title="translation missing: ru.insert_one" class="translation_missing">Insert One</span></a>  
</div>

from rich.

artemaminov avatar artemaminov commented on May 18, 2024

And no, it doesn't.

from rich.

bastiaanterhorst avatar bastiaanterhorst commented on May 18, 2024

Can you post the same code snippet but then when you add the translation?

from rich.

artemaminov avatar artemaminov commented on May 18, 2024

Problem 1 (There is a problem with deleting an image if File Browser translation strings absent.) appears only if not all string translations present, but 2 and 3 are still here.

Here it is, with translation added:

<!DOCTYPE html>
<html>
<head>
  <title>Rich Browser</title>
  <link href="/assets/rich/application-d4002039049475be5eb26daa79f9eaac.css" media="screen" rel="stylesheet" type="text/css" />
  <script src="/assets/rich/application-e66ba44ea91ec64603769f74f4006563.js" type="text/javascript"></script>
  <meta content="authenticity_token" name="csrf-param" />
<meta content="GvV7VgA3gf9stEWK0JFVrOLTy3ibkOOxbY+G/e+HFAI=" name="csrf-token" />
  </head>
<body>

<header>

    <div id="loading" style="display:none;"></div>

  <div id="view-toggle">
    <a href="#" id="view-grid" title="<span class="translation_missing" title="translation missing: ru.view_grid_tip">View Grid Tip</span>">Табличный просмотр</a>
    <a href="#" id="view-list" title="<span class="translation_missing" title="translation missing: ru.view_list_tip">View List Tip</span>"></a>
  </div>

  <div id="insert-toggle">
    <a href="#" id="insert-many" title="<span class="translation_missing" title="translation missing: ru.insert_many_tip">Insert Many Tip</span>"></a>
    <a href="#" id="insert-one" title="<span class="translation_missing" title="translation missing: ru.insert_one_tip">Insert One Tip</span>"></a>  
  </div>

  <ul id="styles" class="scopes">
    <li class="label"></li>
  </ul>

</header>

<div id="legacy-form"><form accept-charset="UTF-8" action="/rich/files" class="new_rich_file" enctype="multipart/form-data" id="new_rich_file" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="GvV7VgA3gf9stEWK0JFVrOLTy3ibkOOxbY+G/e+HFAI=" /></div>
  <p><input id="rich_file_rich_file" name="rich_file[rich_file]" type="file" /></p>
  <input name="commit" type="submit" value="Upload" />
</form></div>

<ul id="items">

  <li id="uploadBlock">
    <div id="upload" class="qq-upload-button placeholder">
      <div class="spinner"></div>
    </div>
    <p></p>
  </li>

    <li class="clickable">
  <img  id="file29"
        src="http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/029/rich_thumb/monin-20cup.jpg?1349863241" 
        data-uris="{&quot;thumb&quot;:&quot;http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/029/thumb/monin-20cup.jpg&quot;,&quot;rich_thumb&quot;:&quot;http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/029/rich_thumb/monin-20cup.jpg&quot;,&quot;original&quot;:&quot;http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/029/original/monin-20cup.jpg&quot;}"
        data-rich-asset-id="29"
                data-rich-asset-type="image"
                data-rich-asset-name="monin-20cup.jpg"
  />
  <p>monin-20cup.jpg</p>
  <a href="/rich/files/29" class="delete" data-confirm="<span class="translation_missing" title="translation missing: ru.delete_confirm">Delete Confirm</span>" data-method="delete" data-remote="true" rel="nofollow" title="">delete</a>
</li><li class="clickable">
  <img  id="file28"
        src="http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/028/rich_thumb/dbcup-logo-.png?1349862856" 
        data-uris="{&quot;thumb&quot;:&quot;http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/028/thumb/dbcup-logo-.png&quot;,&quot;rich_thumb&quot;:&quot;http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/028/rich_thumb/dbcup-logo-.png&quot;,&quot;original&quot;:&quot;http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/028/original/dbcup-logo-.png&quot;}"
        data-rich-asset-id="28"
                data-rich-asset-type="image"
                data-rich-asset-name="dbcup-logo-.png"
  />
  <p>dbcup-logo-.png</p>
  <a href="/rich/files/28" class="delete" data-confirm="<span class="translation_missing" title="translation missing: ru.delete_confirm">Delete Confirm</span>" data-method="delete" data-remote="true" rel="nofollow" title="">delete</a>
</li>

</ul>

</body>
</html>

from rich.

bastiaanterhorst avatar bastiaanterhorst commented on May 18, 2024

Pink is the selection color, it looks like you're selecting everything. Is that the case?
As for the files not deleting, that's part of Paperclip and I'm unable to reproduce. Please try to reproduce in an empty project.

from rich.

mszyndel avatar mszyndel commented on May 18, 2024

@bastiaanterhorst problem is with translation missing in Rich Browser. When I added translation image was successfully deleted.

I'm not sure at the moment how to fix that, but I belive you should reopen this issue.

from rich.

JPrevost avatar JPrevost commented on May 18, 2024

Files don't delete for me either. Any chance on a fix for this? I'm just evaluating this for a project but this bug is a non-starter for me.

from rich.

macowie avatar macowie commented on May 18, 2024

I'm also getting files not deleting from the S3 bucket. Just tried it on a fresh project/bucket.

from rich.

macowie avatar macowie commented on May 18, 2024

Calling destroy on the RichFile object in rails console does delete the file, but using the delete button in the asset manager does not, but it does destroy the record. Will investigate further tomorrow

from rich.

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.